Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Class Finder Laravel Package

kcs/class-finder

Discover and filter PHP classes and namespaces in your project using Composer’s autoloader with PSR resolution. Iterate found classes and reflections, then narrow results by interfaces, subclasses, annotations, PHP 8 attributes, directories, namespaces, or custom callbacks.

View on GitHub
Deep Wiki
Context7
0.6.1

Fixes

  • Support PHP 8.4
  • Allow thecodingmachine/safe 3.x

Full Changelog: https://github.com/alekitto/class-finder/compare/0.6.0...0.6.1

0.6.0

What's new

Fixes

  • Normalize path separator
  • Skip invalid files/classes in offline finders

Full Changelog: https://github.com/alekitto/class-finder/compare/0.5.4...0.6.0

0.5.4

What's Changed

Full Changelog: https://github.com/alekitto/class-finder/compare/0.5.3...0.5.4

0.5.1

What's changed

  • Added support for phpdocumentor 6
  • Added FileFinder to abstract recursive and file-based finders
  • Added ClassMap finder and iterator

Fixes

  • Updated GHA actions
  • Do not call rewind on iteration construction
  • Add list of files known to cause errors to be skipped

Full Changelog: https://github.com/alekitto/class-finder/compare/0.5.0...0.5.1

0.5.0

Breaking changes

  • Autoloading method is used by default from ComposerFinder To retain the previous behavior, the use of autoloader must be explicitly disabled. For example:
  $finder = (new ComposerFinder())
      ->in($path)
      ->useAutoloading(false);

What's changed

  • useAutoloading can now be used to instruct the finder to use autloading or include_once while iterating classes
  • Expose skipNonInstantiable method to skip abstract classes, interfaces and traits
  • Add skipBogonFiles method to reflection finders to prevent fatal errors in well-known cases
  • Add roave/better-reflection reflection factory

Fixes

New Contributors

Full Changelog: https://github.com/alekitto/class-finder/compare/0.4.0...0.5.0

0.4.0

What's Changed

New Contributors

Full Changelog: https://github.com/alekitto/class-finder/compare/0.3.2...0.4.0

0.3.1

CHANGES:

  • Drop support for PHP 7.4, only 8.0+ is supported now
  • Support phpdocumentor/reflection 5.0
  • Fix #5: fatal error if error handler do not return bool
  • Add package documentation (https://alekitto.github.io/class-finder/)
0.3.0

BREAKING CHANGES

  • Added ReflectorFactoryInterface: reflector objects can be customized or filtered before being yielded. Any throw-ed error inside the reflect method will result in the class to be skipped from the iteration.

CHANGES

  • notInNamespace filter added to finders
  • Fixed namespace filtering error in phpdocumentor finder
0.2.2

FIXES:

  • Always normalize paths when iterating. This should fix some issues in windows.
  • Check that error handler has not been changed when unregistering
  • Require thecodingmachine/safe package
0.2.1

CHANGES:

  • Add ErrorHandler to handle errors on requirement/inclusion
  • Fix crash on authoritative class map iteration
0.2.0

BREAKING CHANGES:

  • phpdocumentor/reflection 3 is not supported anymore. Please update to v4 if you want to use the phpdocumentor finder.
  • Added withAttribute to FinderInterface to filter class by PHP attribute.

CHANGES:

  • Allow PHP 8. Drop support for PHP < 7.4.
  • Changed code style rules.
  • Check code against PHPStan.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
terminal42/code-quality-tools
codifyo/ts-generator-bundle
andydefer/laravel-cluster
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky