Download the PHP package niji-digital/drupal-settings without Composer
On this page you can find all versions of the php package niji-digital/drupal-settings. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download niji-digital/drupal-settings
More information about niji-digital/drupal-settings
Files in niji-digital/drupal-settings
Package drupal-settings
Short Description Composer Plugin for generate the Drupal settings file.
License GPL-2.0+
Informations about the package drupal-settings
Drupal settings generator
Composer plugin for generate the Drupal settings.local.php
(or other) file from a yaml parameter file.
Usage
- Run
composer require niji-digital/drupal-settings
-
Add new script to the scripts section of your composer.json:
- Create the YAML parameters file (by default in
COMPOSER_ROOT/drupal-settings
directory, see Parameters section) - Optional: Create the settings file template (see Template section)
-
Optional: Change the settings file destination (see Destination section)
- Run
composer prepare-settings
From "Template" using "Parameters" to "Destination"
All path parameters must be relative to the composer root directory
Template
By default the settings.local.php.twig
template file present in this repository is used.
You can make your own template and add his definition in the composer extra data definition:
Parameters
Example:
This plugin tried to load parameter file (in order):
-
The file defined in composer extra data definitions:
settings/parameters.yml
settings/parameters.dist.yml
Destination
By default the settings.local.php
file is created in the web/sites/default
directory.
The destination can be overwritten in composer extra data definition.
All versions of drupal-settings with dependencies
drupal/core Version ~8.4
php Version >=5.4.5
twig/twig Version ^1.23.1