Skip to content
Snippets Groups Projects
Select Git revision
  • master default protected
1 result

civicrm-composer-plugin

  • Clone with SSH
  • Clone with HTTPS
  • dsnopek's avatar
    David Snopek authored
    Extract drupal library path from composer extra config installer-path
    
    See merge request !9
    3dfd3a2b
    History
    Name Last commit Last update
    src
    .gitignore
    LICENSE
    README.md
    composer.json

    Composer plugin for Drupal projects with CiviCRM

    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

    References