acquia / drupal-recommended-settings
The composer plugin for adding drupal-recommended-settings for Acquia Cloud.
Installs: 271 443
Dependents: 4
Suggesters: 0
Security: 0
Stars: 6
Watchers: 10
Forks: 6
Open Issues: 8
Type:composer-plugin
Requires
- php: >=8.1
- composer-plugin-api: ^2
- acquia/drupal-environment-detector: ^1.5.3
- consolidation/config: ^2 || ^3
- drush/drush: ^12 || ^13
- grasmash/yaml-expander: ^3.0
- loophp/phposinfo: ^1.7.1
Requires (Dev)
- acquia/coding-standards: ^3.0
- composer/composer: ^2.2
- dealerdirect/phpcodesniffer-composer-installer: ^1.0.0
- ergebnis/composer-normalize: ^2.30.2
- phpro/grumphp-shim: ^2.2
- phpunit/phpunit: ^9 || ^10
Conflicts
- acquia/blt: <14
This package is auto-updated.
Last update: 2024-12-22 17:30:34 UTC
README
The Acquia Drupal Recommended Settings plugin adds the recommended settings to the Drupal project, so developers won't have to edit settings.php manually.
The recommended settings includes:
- The required database credentials.
- Configuration sync directory path.
- File directory path i.e public/private etc.
- Acquia site studio sync directory path.
It allows your websites to be easily installed in both Acquia Cloud IDE & local and deployable on Acquia Cloud.
Installation
Install using Composer
composer require acquia/drupal-recommended-settings
Multi-site features with Acquia DRS
The Drupal Recommended Settings offer the multi-site feature out of the box. To configure a multi-site, run the following command, and the plugin will automatically generate the settings.php in the backend.
drush site:install --uri site1
The plugin offers various events that allow you to implement custom logic based on when these events are triggered. You can find the examples of such implementations from here.
Quick examples
Generate settings with default credentials for the default site:
./vendor/bin/drush init:settings
Set up a new site with custom credentials for the local environment:
./vendor/bin/drush init:settings --database=site1 --username=myuser --password=mypass --host=127.0.0.1 --port=1234 --uri=site1
License
Copyright (C) 2023 Acquia, Inc.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.