Composer: Getting Started

Composer is the de-facto standard in the PHP community for including third-party code and autoloading your own code. This course will take you from beginner to expert with Composer in just over an hour.
Course info
Rating
(20)
Level
Beginner
Updated
Sep 29, 2016
Duration
1h 7m
Table of contents
Description
Course info
Rating
(20)
Level
Beginner
Updated
Sep 29, 2016
Duration
1h 7m
Description

At the core of PHP development is a deep understanding of how to leverage existing code to speed up your own development. In this course, Composer: Getting Started, you will learn how to find and include third-party code using Composer. This will dramatically improve your time-to-market by allowing you to use best-of-breed software to solve common problems. First, you will learn how to include third-party code. After that, you'll take on learning how to manage internal dependencies. You'll finish up the course with an understanding of how to autoload your own code with Composer. When you are finished with this course, you will have a thorough understanding of one of the key tools in the PHP ecosystem: Composer. Software required: PHP.

About the author
About the author

Jonathan is a Director of Engineering at Wayfair, where he helps create the best place to buy anything for your home. Previously he ran engineering at Attend, and before that he was a senior software engineer at Etsy, where he focused on solving web performance and scalability challenges.

More from the author
High Performance PHP
Intermediate
1h 34m
Mar 29, 2016
Section Introduction Transcripts
Section Introduction Transcripts

Course Overview
Hi everyone, my name is Jonathan Klein, and welcome to my course, Composer: Getting Started. I am a Director of Engineering at Wayfair. Composer is the most widely-used dependency manager and autoloader for PHP, and it is a robust, modern tool that should be used in all PHP projects. This course is a quick introduction to Composer, and no prior knowledge of Composer is necessary. Some of the major topics that we will cover include installing Composer and using it for the first time, autoloading your code with Composer, including third-party dependencies, and publishing your own packages so other people can use them. By the end of the course, you will know the basics of Composer and be ready to use it in existing projects or brand new ones. You will feel comfortable with all of the core use cases for Composer, and you'll pick up some advanced tips along the way. Before beginning the course, you could be familiar with the basics of PHP development. I hope you'll join me on this journey to learn PHP, with the Composer: Getting Started course at Pluralsight.

The Basics of Composer
Hello and welcome to Composer: Getting Started. In this module we are going to discuss the basics of Composer, and get you up and running quickly with your first Composer project. Here's a summary of the course, so you know what to expect. As I mentioned, this module will be the basics of Composer, then we'll go into detail covering how to include third-party code with Composer in the most effective way. In our third module, we'll dive deeply into autoloading your own code, and the different ways to accomplish that with Composer. Then we'll spend a little time talking about Composer scripts, another nice feature of Composer that sets it apart from other package managers. And finally, we'll talk about how to publish your own Composer package so it can be discovered by other developers around the world. In this first module, we are going to go over the core problems that Composer is designed to solve, then we'll compare it to other package managers and extension managers you may have heard of in the PHP ecosystem, the two most popular of which are PECL and PEAR. I'll show you how to install Composer on your system, and then we'll set up our first Composer project. As you'll see throughout this course, Composer's a critical part of the PHP ecosystem, and I'm going to prove that it makes sense for all projects, both new and old. Let's get started.