Skip to content

koriym/Koriym.Psr4List

Repository files navigation

Koriym.Psr4List

Scrutinizer Code Quality Code Coverage Build Status

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);
}

About

It gets the name of each of the files and class names of a particular PSR4 path.

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages