Skip to content

pentagonal/Modular

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MODULAR

Easy php module storage collector for small project

dev-master 1.0.1
Build Status Build Status
Coverage Status Coverage Status

Embed the script without change the core.
just like as add-ons, plugins or whatever it names.

REQUIREMENTS

- Php 7.0 or later
- Php tokenizer extension enabled
- `spl` enabled
- function `eval` allowed (for validate php file - optional)

USAGE

<?php
use Pentagonal\Modular\Reader;

$reader = new Reader('/Path/To/Directory');
$reader->configure();
$modules = $reader->getValidModules();

// init all module
foreach ($modules as $moduleIdentifier => $module) {
    // initialize per module
    // this only called once on module base
    $module->finalInitOnce();
}

LIBRARIES

LICENSE

MIT LICENSE

About

Embed Package & Search Compatible File Like Modules ( I just make syntax safe as possible )

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages