1. to install Composer, you first need to install Composer. Composer is a PHP dependency management tool, and Laravel framework is to use & amp; nbsp; Composer & amp; nbsp; for installation and dependency management. & Amp; nbsp; Note: (1)
1. install Composer
First, you need to install Composer. Composer is a PHP dependency management tool. the Laravel framework uses Composer for installation and dependency management.
Note:
(1) If an error occurs while installing Composer, enable php_openssl and php_fileinfo extension in php. ini because Laravel needs.
(2) during the installation process, select the php.exe location of your instance.
II. install Laravel
After the Composer installation is complete, run the following command on your website directory in cmd:
composer create-project laravel/laravel your-project-name
Composer automatically downloads and installs Laravel for you.
3. Deploy virtual hosts
For example, my project name is project:
DocumentRoot "E:/www/project/public"ServerName laravel.devErrorLog "logs/laravel.log"CustomLog "logs/laravel.log" common
Of course, you also need to bind the domain name in your hosts:
127.0.0.1 laravel.dev
So far, the installation is complete:
4. implement Hello World
Print Hello World through routing and add the following in app/routes. php:
Route::get('test', function(){ return 'Hello World!';});
Because the Laravel template uses Blade, the Controller or view is introduced in the following tutorial!