Using composer with Drupal 8

timmillwood

Drupal 8 works with composer out of the box. It include a vast array of non-drupal code such as Symfony which can all be pulled in via composer. However it doesn't have to stop there, you can also use composer to pull in your contrib modules and any of their dependencies. Yes there is more, you can also use it for your custom modules and pull them in too.

In this session we will step through a few different senarios. Starting with creating a Drupal site from one composer command. We will then look at how to build a contrib module to support composer, and how to include a module via composer.

We will briefly touch on services such as Toran Proxy, the best way to handle your custom modules.

The session will finish with a Q&A where we can discuss getting setup with composer.

Session Track

Coding and Development

Experience Level

Intermediate

Drupal Version