15/05
2018
Some helper functions for building a structured php scripts
Some helper functions for building a structured php scripts., (*1)
Package namespace: Senhung\Loader
, (*2)
$ composer require senhung/loader
<?php require_once 'vendor/autoload.php'; use Senhung\Loader\Loader; /* Load all files under current directory */ Loader::load('.', -1);
Require files under a directory recursively., (*3)
Loader::load(string $directory [, int $depth [, array $priorityFiles [, array $extensions]]]): void
Get all child classes' names of a class, (*4)
Loader::getAllChildClasses(string|object $class): array