Skip to content

Split your application logic in AMD, like RequireJS or AngularJS

License

Notifications You must be signed in to change notification settings

raphahardt/modularphp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

modularphp

Split your application logic in AMD (Asynchronous Module Definition), like RequireJS or AngularJS. This library is experimental and is not already fully tested. USE AT YOUR OWN RISK!

Usage

use Modular/Module;

Module::create('moduleA', array('moduleB'), function ($app) { // your application logic here });

Module::create('moduleB', function ($app) { // you can change the $app var here too and the changes applies to moduleA });

// select the initial module Module::bootstrap('moduleA', new \Application()); // your application object

License

This code is under MIT license.

About

Split your application logic in AMD, like RequireJS or AngularJS

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages