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:
<VirtualHost *:80>DocumentRoot "E:/www/project/public"ServerName laravel.devErrorLog "logs/laravel.log"CustomLog "logs/laravel.log" common</VirtualHost>
Of course, you also need to bind a domain name to 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!‘;});
Laravel Tutorial: laravel 4 installation and getting started