yiisoft / classifier
Classifier traverses file system to find classes by a certain criteria.
Fund package maintenance!
Opencollective
yiisoft
Requires
- php: ^8.0
- symfony/finder: ^5.4|^6.0|^7.1
Requires (Dev)
- maglnet/composer-require-checker: ^4.2
- phpunit/phpunit: ^9.5
- rector/rector: ^2.0.3
- roave/infection-static-analysis-plugin: ^1.16
- spatie/phpunit-watcher: ^1.23.6
- vimeo/psalm: ^4.30|^5.8
This package is auto-updated.
Last update: 2024-12-13 09:21:54 UTC
README
Yii Classifier
Classifier traverses file system to find classes by a certain criteria.
Requirements
- PHP 8.0 or higher.
Installation
The package could be installed with Composer:
composer require yiisoft/classifier
Documentation
Usage of classifier is the following:
use \Yiisoft\Classifier\Classifier; use \Psr\SimpleCache\CacheInterface; $cacheInstances = (new Classifier('src')) ->withInterface(CacheInterface::class) // can use ->withParentClass() instead ->withAttribute(MyAttribute::class) ->find();
You specify one more directories to traverse, interfaces, base classes, attributes to search for and call find()
method which returns a list of classes found.
If you need help or have a question, the Yii Forum is a good place for that. You may also check out other Yii Community Resources.
License
The Yii Classifier is free software. It is released under the terms of the BSD License.
Please see LICENSE
for more information.
Maintained by Yii Software.