-
Notifications
You must be signed in to change notification settings - Fork 15
Finding and Installing Modules
Modules extend the core or provide some additional functionality. Scenes are modules, providing Scene models to the database and code to handle user interaction with those scenes. You can also imagine any number of utility modules, like analytic event aggregators or whole new permission systems.
http://code.lot.gd/ is our growing collection of module code.
To make your module a part of http://code.lot.gd, simply put up a pull request adding it to satis.json.
Modules are installed via Composer packages. Composer is a common dependency manager for PHP, providing centralized storage and easy installation of code. We are hosting our own repository of packages at http://code.lot.gd.
- To install a new module, add it as a Composer dependency. See the example of specifying the HelloWorld module in the crate-sample repo.
- Run
composer updateto install the module's code. - Finally, register any newly added modules with the core by using the
daenerystool:
vendor/bin/daenerys module:register
Note: modules are added to crates, so these instructions are to be run from a crate directory.