How to install Laravel 5.2

Viewed 25168

I am installing the Laravel framework in directory /var/html/www, using command

php composer.phar global require "laravel/installer"

It changes installation directory automatically, shown message is:

Changed current directory to /home/.composer

What is the reason? Do I need to add any other command?

3 Answers

Let use

composer create-project --prefer-dist laravel/laravel project_name "5.2.*"
Related