It gets the name of each of the files and class names of a particular PSR4 path.
$ composer require koriym/psr4list
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);
}