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

General Discussion

composer code not working

when i post the omposer require --dev phpunit/phpunit ^8 in terminal for vscode i get an error message saying composer command not found

1 Answer

I'm not sure exactly what you are trying to do, but if you enter something in the terminal within vscode, it will run the line as if you had typed it on the command line. So the error is telling you that your Operating system does not have a "composer" command.

Looking online, I see that there is an optional "composer" for PHP. It sounds like you need to install this, assuming you really want it. If you go to wikipedia and enter:

composer (software)

You will find some more information about it.

well im using visual studio code and the first lesson is learning how to test your code out. and i do not know how to download the composer command