Using Composer manager
Drupal 8 has an interesting predicament. It utilizes third-party PHP libraries Proudly Built Elsewhere that are managed through Composer. However, the packages managed by Composer are committed into version control and Composer is (as of 8.0.x) not part of the Drupal build or installation process.
The Composer manager module provides a way to fully support a Composer-based workflow when working with Drupal. Drupal Commerce requires a Composer-based workflow because it uses third-party PHP libraries. In this recipe, we will examine the Drupal Commerce composer.json file and install the module.
Note
Ideally, future versions of Drupal, such as 8.1.x or 8.2.x, will remove the need for the Composer manager and the previous recipe ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access