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 A Modern Look at PHP

Rifqi Fahmi
Rifqi Fahmi
23,164 Points

How to install composer in other place ??

I want to install this decomposer to my project. I am using wampserver to get practice. So how did I install this composer???

3 Answers

Codin - Codesmite
Codin - Codesmite
8,600 Points

I assume you are reffering to composer? https://getcomposer.org/

Installing in another location is fairly simple for WAMP enviroment.

Download the Windows Installer of Composer from here: https://getcomposer.org/download/

When you run the installer it will ask you the path of where you would like to install composer.

Rifqi Fahmi
Rifqi Fahmi
23,164 Points

o yeah I mean composer hehehe. Thanks maan

Rifqi Fahmi
Rifqi Fahmi
23,164 Points

Hi Ashley when I want to install composer it ask for 'php.exe directory' where I cand find it?

Codin - Codesmite
Codin - Codesmite
8,600 Points

Depends on the version of windows you are using or if you defined a custom path when setting up WAMP or PHP on your server.

Here are some possible locations though:

c:\php\php.exe
c:\php5\php.exe
c:\windows\php.exe
c:\program files\php\php.exe
c:\wamp\bin\php\php5\php.exe
c:\xampp\php\php.exe
Rifqi Fahmi
Rifqi Fahmi
23,164 Points

waaa thank you. then how do i access the composer to type the command for my project??

Rifqi Fahmi
Rifqi Fahmi
23,164 Points

Thanks Ashley :') u da real MVP :)