Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/droath/drupal-module-installer
Install or uninstall Drupal modules based on composer operations.
https://github.com/droath/drupal-module-installer
Last synced: 7 days ago
JSON representation
Install or uninstall Drupal modules based on composer operations.
- Host: GitHub
- URL: https://github.com/droath/drupal-module-installer
- Owner: droath
- Created: 2016-09-19T02:26:17.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2016-09-27T15:25:58.000Z (about 8 years ago)
- Last Synced: 2024-04-24T13:27:59.267Z (7 months ago)
- Language: PHP
- Size: 12.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Drupal Module Installer
This project is a composer plugin that integrates Drupal command-line tools (drush, drupal console) with composer. When installing or uninstalling Drupal module(s) using composer you had to manually install/uninstall the module(s) independently.
With this plugin installed composer will execute drush or drupal console commands based on the operation being performed, which leads to a more seamless development workflow.
## Usage
Run `composer require droath/drupal-module-installer:dev-master` in your composer project.
Once installed you'll get a prompt when installing or uninstalling Drupal modules using composer. It will ask you if you would like to install/uninstall (based on the operation being performed) the newly added module.
## Configuration
The default binary that will be used is `drush`. You can define a binary that you would like to use when executing commands in the `extra` block in the composer.json.
```json
"extra": {
"drupal-module-installer": {
"binary": "drush",
"drupal_root": "[DRUPAL_ROOT_RELATIVE_PATH]"
}
}
```
**Extra Options:**- The `binary` option allows the following:
- drush
- drupal
- (Optional) The `drupal_root` option allows a relative path to the Drupal project. The script attempts to find the Drupal root itself, the path defined here will be used if it's unable to find it.## Contributing
Feel free to hack on this project. Please submit PRs or feature/bug issues on the GitHub project.