Installation in laravel environment and laravel Environment
Installation in laravel Environment
Composer I think is a special thing in php. For example, we compile a php extension module. so file, and then load it into php, while laravel uses something called Composer to solve the dependency problem.
1. Install Composer
It's easy to download and put it in the environment variable.
Curl-sS https://getcomposer.org/installer | phpmv composer. phar/usr/local/bin/composer
2. Use of composer
Use composer to create a laravel Project
# Composer create-project laravel/laravel test ...... # cd test # composer installLoading composer repositories with package informationInstalling dependencies (including require-dev) from lock fileNothing to install or updateGenerating autoload filesGenerating optimized class loader
It is similar to pip install in python. It is easy to use.
Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.