Skip to content
This repository was archived by the owner on Jul 4, 2019. It is now read-only.

5u4/php-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

10 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

PHP Loader

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

About

🐘 Some helper functions for building structured php scripts

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages