Body: <p>I am building a composer.json file for my project which involves core Drupal, contributed Drupal modules, Drupal related libraries, core CiviCRM. All initialisation of the empty prototype and customisation is done with both Drupal modules and CiviCRM extensions, whichever seems easier. </p>
  
  <p>The question is how do we install and upgrade the core CiviCRM code? composer search reveals that civicrm is not part of packagist, but I do see a composer.json and a bower.json file in the civicrm folder. </p>
  
  <p>Before I start trying out doing it on my own, could you please give me some hints and examples how I could do this. My goal is that composer update would take care of upgrading both drupal and CiviCRM code, without following the usual documented upgrade instructions. </p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-05-11T19:45:27.703Z
Comments.Text: having CiviCRM available for install by composer is a topic under discussion right now, as the D8 version is being worked on and since CiviCRM and Drupal 8 have Symfony of different version, it looks like it may be necessary for the class autoload
Comments.UserDisplayName: jackrabbithanna
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-05-15T19:01:33.913Z
Comments.Text: Presently I am working with and writing Composer scripts and use drush to glue things together. Civicrm is added as a tar based package. When finished, only the Civicrm version number needs to be changed to cause an upgrade. I will post the result here.
Comments.UserDisplayName: ñull
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-05-06T21:44:08.300Z
Comments.Text: @ñull Can you post your final script as an answer? I am working though the same process of trying to migrate a drush make file to composer for Drupal7 and CiviCRM 4.7.
Comments.UserDisplayName: lolcode
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-05-09T09:59:10.180Z
Comments.Text: Instructions are too extensive to post here and the formatting here is very limited. Also, meanwhile the project moved on and we migrate now fully to a Drupal 8 solution to meet our rather HR than CRM requirements. Also I no longer receive funding for this. I will contact you at freeform.
Comments.UserDisplayName: ñull
Tags: <upgrade><install><composer><bower>
Title: How to use Composer to install and upgrade CiviCRM 4.6.x / Drupal 7
ThreadText: # How to use Composer to install and upgrade CiviCRM 4.6.x / Drupal 7
  
  (Asked by: username_0 on 2017-05-05)
  
  I am building a composer.json file for my project which involves core Drupal, contributed Drupal modules, Drupal related libraries, core CiviCRM. All initialisation of the empty prototype and customisation is done with both Drupal modules and CiviCRM extensions, whichever seems easier.
  
  The question is how do we install and upgrade the core CiviCRM code? composer search reveals that civicrm is not part of packagist, but I do see a composer.json and a bower.json file in the civicrm folder.
  
  Before I start trying out doing it on my own, could you please give me some hints and examples how I could do this. My goal is that composer update would take care of upgrading both drupal and CiviCRM code, without following the usual documented upgrade instructions.
  
  **Tags:** upgrade, install, composer, bower
  
  > **Comments:**
  > **username_1**: having CiviCRM available for install by composer is a topic under discussion right now, as the D8 version is being worked on and since CiviCRM and Drupal 8 have Symfony of different version, it looks like it may be necessary for the class autoload  
  > **username_0**: Presently I am working with and writing Composer scripts and use drush to glue things together. Civicrm is added as a tar based package. When finished, only the Civicrm version number needs to be changed to cause an upgrade. I will post the result here.  
  > **username_2**: @username_0 Can you post your final script as an answer? I am working though the same process of trying to migrate a drush make file to composer for Drupal7 and CiviCRM 4.7.  
  > **username_0**: Instructions are too extensive to post here and the formatting here is very limited. Also, meanwhile the project moved on and we migrate now fully to a Drupal 8 solution to meet our rather HR than CRM requirements. Also I no longer receive funding for this. I will contact you at freeform.  
  
  ---
  
  ## 0 answers
  
  