This workshop will be retired on May 1, 2025.
Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Start a free Courses trial
to watch this video
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 upRelated 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