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

How do i install composer?

Hello, first of all i want so say im sory for my bad english is not mi main languaje (I speak spanish).

Well i started the course Builiding Websites with PHP: http://teamtreehouse.com/library/building-websites-with-php

And there is no guide or whatsoever of how to install composer into the computer, in this course, the composer its already installed in the workspace, but i want to use it in my computer and i couldn't install it properly or I am missing something.

I downloaded from https://getcomposer.org/download/ , then i installed it into my C:\xampp\php\php.exe, and when i try to open the composer from the folder C:\ProgramData\ComposerSetup\bin\ the composer opens but it exit in a second, I am missing something? Did i do something wrong? I couldnt find any usefull information about the installation at least on youtube,

Could you help me please??

Thanks

What is your operating system?

1 Answer

Daniel Lozano
Daniel Lozano
2,732 Points

Hi, I can speak spanish so i will do it.

Hola, parece que estás utilizando Windows como sistema operativo. Hay en la página de composer un instalador que simplemente ejecutándolo hace todo el trabajo por ti. Lo descargas y lo instalas, quizás necesites deshacer todo lo que ya hiciste previamente.

ESTE ENLACE TE LLEVA A LA DESCARGA / This link get you to the download directly!! https://getcomposer.org/Composer-Setup.exe

Una vez instalado para utilizarlo abre el CMD y ejecuta ahí los comandos que desees. En caso de que el CMD no te deje yo me bajaría GIT Bash y utilizaría eso como CLI de windows.

Saludos.