roundearth / civicrm-composer-plugin
A composer plugin to assist with installing CiviCRM.
Requires
- composer-plugin-api: ^1.1
- pear/archive_tar: ^1.4
- symfony/filesystem: ^2.7 || ^3.0 || ^4.0
- symfony/process: ^2.7 || ^3.0 || ^4.0
This package is auto-updated.
Last update: 2025-02-16 23:18:53 UTC
README
This Composer plugin can be added to a fully 'composerized' Drupal 8 site in order to easily install CiviCRM on it.
This will ONLY work on a Drupal 8 site based on drupal-composer/drupal-project, so if you have an older Drupal 8 site that's not, you'll need to convert it before using this plugin.
Usage
You need a couple of dependencies first:
Make sure that you have a recent version of Composer! A couple of people have tried to use this plugin with older versions and have experienced issues.
After that, you can run this command:
composer require roundearth/civicrm-composer-plugin civicrm/civicrm-drupal-8
Installing CiviCRM
See the Composer project template for some tips on how to install CiviCRM once the code has been added via composer.
How does it work?
This is the file that does all the real work:
https://gitlab.com/roundearth/civicrm-composer-plugin/blob/master/src/Handler.php