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 Building Websites with PHP Dependency Management Introducing Composer

Orlando Murdock
Orlando Murdock
2,180 Points

how do i install composer locally on my pc?

He shows u how to do this in work space but who said i want to do in work space? i need to know how to do this locally for future projects. I have a design i want to practice with and i dont even know how to start.

5 Answers

You are welcome! If you are on PC, have you tried installing Wamp Server? From what I have read, is that the following might help.

Download and install Wamp http://www.wampserver.com/en/ For example the Wamp path (once installed) to php.exe would look like this C:\wamp\bin\php\php5.5.x\php.exe

At the php.5.5.x part of the path, you would put in the latest version of php installed. I believe the latest version included in Wampserver would be php.5.5.12

You might want to try this link and scroll down to your operating system that you are installing it on https://getcomposer.org/doc/00-intro.md If you are on a PC, you can find a link to an EXE install file, or they give you instructions on setting it up manually. It mentions this about installing Composer with the EXE file : "This is the easiest way to get Composer set up on your machine. 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." There are separate instructions for Linux/Unix/OSX

Orlando Murdock
Orlando Murdock
2,180 Points

thanks for the quick feedback, but yeah i saw that however when i run the install its asking to browse to php.exe file in which is not available on my pc so i am kinda stuck at the moment researching on how to get php installed etc. thanks :D appreciate the help.

Orlando Murdock
Orlando Murdock
2,180 Points

yeah I found a similar program called xampp and figured how to install composer in it, I am currently working on the design I have and applying my new learned php knowledge :D thanks a bunch!

Ali Rizwan
Ali Rizwan
Courses Plus Student 21,460 Points

Hey! would you like to share us your discovery to install a composer with xampp? May be some people like me still want to know that. thank you!

That is awesome! Good luck on your project design!