senhung/loader

This package is abandoned and no longer maintained. No replacement package was suggested.

Some helper functions for building a structured php scripts

v2.0.0 2018-05-15 15:21 UTC

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