Some helper functions for building a structured php scripts.
Package namespace: Senhung\Loader
$ 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.
Loader::load(string $directory [, int $depth [, array $priorityFiles [, array $extensions]]]): void
Get all child classes' names of a class
Loader::getAllChildClasses(string|object $class): array