Composer Basics

Topic
Developer
Audience
Beginner
Description

If you are a Drupal 8 site builder or developer than you probably already know that you should be using Composer to manager your codebase. This workshop is designed for folks who struggle with using Composer, or who are ready to jump in and use it for the first time. 

The Composer dependency manager can sometimes be a little intimidating - until you learn what is under the hood, then the full power of this tool is fully revealed. In this full-day workshop, we'll learn the basics of Composer to manage a project's dependencies using multiple hands-on examples. 

We'll start with a discussion about exactly what a dependency manager is and why we need one, then we'll build a (non-Drupal) PHP project from scratch using Composer. From there we'll learn to add, remove, and update dependencies. 

Once we know the basics, we'll take a deep dive into the "Drupal Composer/Drupal Project" Composer template - a current best practice for managing Drupal 8 codebases as well as a discussion (and maybe a demo or two) of recent progress of the Drupal Community's Composer Initiative.

Finally, a series of Composer related tips and tricks will be discussed and demonstrated, including additional Composer commands and plugins as well as a discussion about PHP versions and using Composer in a production environment. 
 

Goals
Understanding the basics of the Composer dependency manager and comfort with best practices related to Drupal and Composer.
Requirements
  • Basic command-line navigation skills.
  • Some experience with Git.
  • Composer, Git, and PHP7 installed on your local machine.
  • A copy of Drupal 8 does not need to be installed on your local machine.
Training Length
Full Day
Room
Gaige Classroom 302
Timeslot
9:00 - 4:00pm
Trainers
Profile picture for user ultimike
DrupalEasy
Developer/trainer

Michael Anello (ultimike) is co-founder and vice president of DrupalEasy, a Drupal training and consulting firm based in Central Florida. Mike has been one of the main organizers of the Florida Drupal Users' Group and Florida DrupalCamps for over ten years, is a member of the Drupal Community Working Group, and also helps manage the Drupal Association's Community Cultivation Grants program. 

Michael has been developing Drupal sites for over 12 years specializing in module development, theming, and general site-building with a strong focus on best practices and sustainable development. Michael is also the lead trainer and curriculum developer for DrupalEasy's intensive, 12-week Drupal Career Online.

He can be heard interviewing fellow Drupal community members, talking about current Drupal news, and highlighting new and upcoming modules on the twice-monthly DrupalEasy Podcast. He is an Acquia Certified Developer and a Drupal 8 core contributor as well as the author of "Professional Local Development with DDEV Explained".