Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP PHP User Authentication Building the Library HTTP Foundation

Simon Coates
Simon Coates
28,694 Points

How can you install the Symfony HTTP_Foundation package with composer? Vague

Doesn't seem to accept obvious answers like 'composer install', 'composer.json', 'require', or 'symfony/http-foundation'. I removed the package in question completely from workspaces, and added it back into composer.json, then reran composer install. So i definitely know how to install the package in question, but i'm just not sure precisely what the question wants. It's probably something obvious and i'm just thinking about it wrong.

3 Answers

Umesh Ravji
Umesh Ravji
42,386 Points

Hi Simon, the answer to the question is

composer install symfony/http-foundation

Simon Coates
Simon Coates
28,694 Points

Thanks. The tutor for that video series included a composer.json file in the initial project files, so she just ran "composer install". I'd completely forgotten I could pass in the package directly.

composer require symfony/http-foundation

https://packagist.org/packages/symfony/http-foundation

Rachel Nemati
Rachel Nemati
98 Points

Yeah the link provided in the question has an article that has the answer at the top but it was very subtle so I didn't see it. It did get on my nerves a little that they left it to the student to figure this out though.