PHP code example of koriym / psr4list
1. Go to this page and download the library: Download koriym/psr4list library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
koriym / psr4list example snippets
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);
}