How to migrate your Drupal 8 site to a composer based project?

mzomorodian

Composer is becoming more and more of a requirement for managing Drupal 8 dependencies. Composer can be confusing and difficult to troubleshoot for new and inexperienced users. In this session, the audience will learn how to migrate an existing D8 site to a composer based site step by step. We'll walk through the steps required to get your site migrated over to composer and cover some the gotchas that you may encounter during the process.

Instead of starting to build a new Drupal project from scratch with composer, we will work on how the audience can migrate an existing Drupal 8 site to Composer based site. By reversing the process, the audience will learn more about what is happening in a composer built site.

Specifically, the audience will learn:

  • What is composer and how to migrate your Drupal 8 site to Composer.
  • Best practices in structuring your Composer.json for modules, themes, libraries, profiles.
  • Semantic versioning.
  • Patching and pinning dependencies via composer.
  • Why we need to use Drupal-scaffold?
  • Showing common composer errors and how to fix them.
  • Common tools to migrate your site to Composer based site.

Moderate command line and PHP knowledge is recommended. Prior composer knowledge will help attendees get the most out of this session, but is not required.

Program tags

php, security, site building

Experience Level

Intermediate

Drupal Version