http://www.frankwaive.com/how...
I have changed the path of php to the version of XAMPP
I also install composer on this machine through homebrew
I just don"t understand his next step:
curl -s http://getcomposer.org/installer | php
and
composer create-project laravel/laravel --prefer-dist
and in the "Applications/XAMPP/htdocs" directory?
so can I choose to install composer to any directory I want? And laraval?
because the project folder I put is not in Applications/XAMPP/htdocs (I have other projects)
I put it in the / Users/XXX/Projects/ project folder (there are other projects here)
so do I have to go to / Users/XXX/Projects/ and install composer in this directory? And laravel? But what was the composer I installed through brew?
Let me first talk about my understanding:
do I install homebrew first, and then install the composer main program through brew?
so if I use composer for every next project, I have to install it again in this directory? Including laravel?
suppose I"m going to use three projects (different websites)
suppose it"s
/Users/XXX/Projects/a
/Users/XXX/Projects/b
/Users/XXX/Projects/c
then I also set the project path and the specified port in httpd-vhosts.conf and httpd.conf of XAMPP, and I can also use 127.0.0.1:port to access a, b, c project
suppose I need composer for all three websites, and I need to write
for all three projects. Do I want a folder to enter these three projects to run the above two codes?
PS: I can"t understand official documents