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.
thecodingmachine/safe 3.xFull Changelog: https://github.com/alekitto/class-finder/compare/0.6.0...0.6.1
phpdocumentor/reflection 4.x (https://github.com/alekitto/class-finder/commit/dda7d8fbf3f39e3b47683b87ee0057e0ba95d320)nikic/php-parser (https://github.com/alekitto/class-finder/commit/8f270ebac2e887a205f65db44f73c9334107bba0)Full Changelog: https://github.com/alekitto/class-finder/compare/0.5.4...0.6.0
Full Changelog: https://github.com/alekitto/class-finder/compare/0.5.3...0.5.4
rewind on iteration constructionFull Changelog: https://github.com/alekitto/class-finder/compare/0.5.0...0.5.1
ComposerFinder
To retain the previous behavior, the use of autoloader must be explicitly disabled. For example: $finder = (new ComposerFinder())
->in($path)
->useAutoloading(false);
useAutoloading can now be used to instruct the finder to use autloading or include_once while iterating classesskipNonInstantiable method to skip abstract classes, interfaces and traitsskipBogonFiles method to reflection finders to prevent fatal errors in well-known casesroave/better-reflection reflection factoryFull Changelog: https://github.com/alekitto/class-finder/compare/0.4.0...0.5.0
pathFilter on the finders to filter files by filepath before inclusionFull Changelog: https://github.com/alekitto/class-finder/compare/0.3.2...0.4.0
Full Changelog: https://github.com/alekitto/class-finder/compare/0.3.1...0.3.2
CHANGES:
phpdocumentor/reflection 5.0BREAKING CHANGES
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 findersphpdocumentor finderFIXES:
thecodingmachine/safe packageCHANGES:
BREAKING CHANGES:
phpdocumentor/reflection 3 is not supported anymore. Please update to v4 if you want to use the phpdocumentor finder.withAttribute to FinderInterface to filter class by PHP attribute.CHANGES:
How can I help you explore Laravel packages today?