Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Dependency Management with Composer!

- 2x 2x
- 1.75x 1.75x
- 1.5x 1.5x
- 1.25x 1.25x
- 1.1x 1.1x
- 1x 1x
- 0.75x 0.75x
- 0.5x 0.5x
The most effective developers are the ones who know what code to write and what code to use. These external "packages" of code are called dependencies, because your application depends on them. Composer is a tool to help you manage which packages, and which package versions, your application depends upon.
Links
Composer - Dependency Manager for PHP
PHPMailer - full-featured email creation and transfer class for PHP
OAuth2-Google - Google OAuth 2.0 Client from The League of Extrodinary Packages
PHPUnit - The PHP Unit Testing framework.
Example
composer require
phpmailer
0
If composer require does not install the packages, make sure you run composer update. You can specify a single package to update.
composer require league/oauth2-google
composer update league/oauth2-google
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up-
Glen Rose
7,108 Points0 Answers
-
David Pinheiro
11,511 Points0 Answers
-
MIHA W.LEE
PHP Development Techdegree Graduate 25,452 Points1 Answer
-
Philip Schultz
11,437 Points2 Answers
-
JONATHAN MOO
9,224 PointsFatal error: Uncaught Error: Class 'PHPMailer' not found in /home/treehouse/workspace/email.php
Posted by JONATHAN MOOJONATHAN MOO
9,224 Points10 Answers
View all discussions for this video
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up