koriym / psr4list
Returns the name of the classes in PSR4 path
Installs: 416 874
Dependents: 3
Suggesters: 0
Security: 0
Stars: 0
Watchers: 4
Forks: 0
Open Issues: 0
Requires
- php: >=7.0
Requires (Dev)
- phpunit/phpunit: ^6.0 || ^7.0 || ^9.5
README
It gets the name of each of the files and class names of a particular PSR4 path.
Installation
$ composer require koriym/psr4list
Usage
use Koriym\Psr4List; $list = new Psr4List; $prefix = 'BEAR\Sunday'; $path = __DIR__ . '/src'; foreach ($list($prefix, $path) as list($class, $file)) { var_dump($class); var_dump($file); }