Download the PHP package narrowspark/configurators without Composer
On this page you can find all versions of the php package narrowspark/configurators. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download narrowspark/configurators
More information about narrowspark/configurators
Files in narrowspark/configurators
Package configurators
Short Description Automatic configurators for the narrowspark framework
License MIT
Informations about the package configurators
Automatic Narrowspark Framework Configurators
Installation
Configurators
There are several types of tasks, which are called configurators:
options, bootstrap and providers.
providers Configurator
Turns on one or more service provider in the Narrowspark app by appending them to the serviceproviders.php file.
Its value is an associative array where the key is the service provider class name and the value is an array of environments where it must be used.
The supported environments are local, prod, testing and global (which enables the service provider in all environments):
The previous operation is transformed into the following PHP code:
options Configurator
Adds new config files to the config folder provided from your root composer.json config-dir name.
Note: the package name is taken to generate the file name.
This example creates a new view config file in the packages folder and packages/test folder:
Note: the first array key is taken as environment key, like
globalortestin this example.
bootstrap Configurator
This example creates new bootstrap configs for the console and http kernel:
you can choose between http, console and global type to configure your kernel bootstraps,
with the possibility to configure bootstraps for your chosen environment.
Note: generates a new
bootstrap.phpfile to theconfigfolder provided from your root composer.jsonconfig-dirname, if the file doesn’t exists.Note: the
globaltype will configure both kernels.
Contributing
If you would like to help take a look at the list of issues and check our Contributing guild.
Note: please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.
Credits
License
The Narrowspark configurators is open-sourced software licensed under the MIT license