Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install Laravel 5.2

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?

like image 850
Bhulawat Ajay Avatar asked Mar 15 '16 07:03

Bhulawat Ajay


People also ask

Which PHP version is required for Laravel 8?

PHP 8.0. Laravel 9.x requires a minimum PHP version of 8.0.


1 Answers

Let use

composer create-project --prefer-dist laravel/laravel project_name "5.2.*"
like image 171
TinDoan Avatar answered Oct 18 '22 06:10

TinDoan