1) change the resolution of your directory to enable CRUD. Open a terminal and paste this command
sudo chmod -R o+rw /var/html/www
2) update the package manager cache by doing:
sudo apt-get update
3) cd to your directory to check if json composer exists
cd /var/html/www
and enter the
composer
4) To set a composer in his catalog, run
curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer
5) To check if it is running
composer
6) Now install laravel 5.2 in your directory (/ var / html / www)
composer create-project laravel/laravel ProjectName 5.2
source share