flame / module-installer
Custom installer for Nette modules
Installs: 22 886
Dependents: 2
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 2
Type:composer-installer
Requires
- php: >= 5.3.0
Requires (Dev)
- composer/composer: dev-master
This package is not auto-updated.
Last update: 2024-11-04 15:51:11 UTC
README
This is a custom installer for Composer packaging system which helps installing Nette Modules.
Creating an Module
To create a new Nette Module, simply create it as a Composer package. There are only a few differences from normal Composer packages:
- Set type to
nette-module
- Add this installer as a requirement:
flame/module-installer: @dev
- Set extra section of composer.json
Here is an example:
{ "extra": { "module": { "class": "Flame\\CMS\\ErrorModule\\DI\\ErrorExtension", "name": "Error" } } }
Name is optional
Look at this composer.json for full example.
Your extension will be added into app/config/extensions.(php|neon) file
Please create first the file with php or neon extension