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
Before Composer can do anything for you, it needs to be installed. Learn some tips for installation and further instructions in the notes.
Tips
- Install globally
- Match your development environment
- Do NOT include your vendor folder in your Version Control System (VCS)
Installation - Linux / Unix / OSX
For additional help, see the Documentation
php composer-setup.php --install-dir=bin --filename=composer
mv composer.phar /usr/local/bin/composer
Note: If the above fails due to permissions, you may need to run it again with sudo: sudo mv composer.phar /usr/local/bin/composer
Installation - Windows
For additional help, see the Documentation
Download and run Composer-Setup.exe. It will install the latest Composer version and set up your PATH so that you can just call composer from any directory in your command line.
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