senhung / loader
Some helper functions for building a structured php scripts
Installs: 25
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
pkg:composer/senhung/loader
Requires
- php: >=7.1.0
This package is not auto-updated.
Last update: 2020-01-24 17:42:28 UTC
README
Descriptions
Some helper functions for building a structured php scripts.
Package namespace: Senhung\Loader
Use
$ composer require senhung/loader
<?php require_once 'vendor/autoload.php'; use Senhung\Loader\Loader; /* Load all files under current directory */ Loader::load('.', -1);
Functions
load
Require files under a directory recursively.
Loader::load(string $directory [, int $depth [, array $priorityFiles [, array $extensions]]]): void
getAllChildClasses
Get all child classes' names of a class
Loader::getAllChildClasses(string|object $class): array