indows Installing the Laravel 5.0 process
1. Configuring the PHP Environment
First, you need to configure the PHP operating environment because the Laravel Framework has some system requirements, so it is recommended that you download a higher version to meet the following conditions.
PHP version >= 5.4
Mcrypt PHP Extension
OpenSSL PHP Extensions
mbstring PHP Extension
Tokenizer PHP Extension
I use it. Xampp
2. Installing composer
The Laravel framework uses "http://getcomposer.org/" \o "\ T" Http://9iphp.com/web/laravel/_blank "Composer to manage its dependencies. So before you use Laravel , you have to make sure that you have Composer installed on your computer.
Composer-setup.exe
to HYPERLINK "https://getcomposer.org/download/" \o "" \ T "Http://9iphp.com/web/laravel/_blank" Composer Download the installation package under Windows, click Install directly after download -"Next" – Select "Install Shell Menus" – "Next", this step needs to choose Php.exe the path, installed in the D:\xampp\php , so after choosing the road to continue "Next", this will download a composer.phar file , after a period of time to wait,composer the installation is complete.
3. Installing Laravel
This step directly through Composer create-project command to install.
Open the directory you want to install to, I choose to install to the D:\xampp\htdocs directory, right-select "Use Composer here", or directly win+r key to open Cmd.exe, and then the CD command enters the installation directory. Then install it by using the following command:
Composer Create-project Laravel/laravel Laravel5
The last one is the name of the installation build directory that can be modified, while the others cannot be modified. After a period of waiting, the installation Laravel is complete.
Now through Http://localhost/laravel5, the following content appears, it means that the initial installation is complete.
4 composer configuration of Windows environment variables
Windows 7 system, update Composer, and then perform
Composer Self-update
Windows Global Variables configuration method:
(1) composer
#!/bin/sh
dir=$ (d=$ (dirname "$"), CD "$d" && pwd)
# See if we is running in Cygwin by checking for Cygpath program
If Command-v ' Cygpath ' >/dev/null 2>&1; Then
# Cygwin paths start With/cygdrive/which would break Windows PHP,
# so we need to translate the dir path to Windows format. However
# We could is using Cygwin PHP which does not require this, so we
# test if the path to PHP starts With/cygdrive/rather Than/usr/bin.
if [[$ (which php) = =/cygdrive/*]]; Then
dir=$ (cygpath-m $dir);
fi
Fi
dir=$ (echo $dir | sed ' s//\/g ')
PHP "${dir}/composer.phar" $*
(2) Composer.phar
Composer.phar COMPOSER,
the installed directory is C:\ProgramData\ComposerSetup\bin
Configuration in winows environment variables
User Variables
Composer_home=c:\programdata\composersetup
Path=;%composer_home%\bin;
System Variables Comoposer =1
Composer.phar Composer
Note: If PHP is not configured with global variables
Php_home=d:\xampp
Path=;%php_home%\php;%php_home%\php\ext;
5.Laravel 5 Configuration of Windows environment variables
Composer global require "laravel/installer=~1.1"
Generate Vendor folder under current directory
Windows Environment User variable configuration
Laeavel_home=d:\xampp\php\vendor\
path=;%laeavel_home%\bin;
Vendor folder contains Laeavel
6 Final step
Go to the installation directory to execute :
PHP Artisan Serve
Access Directory http://localhost:8000
Resources download Larval all source code http://download.csdn.net/detail/heavenhors/8617175
Laravel Tools Composer http://download.csdn.net/detail/heavenhors/8617117
The above describes the Laravel5 installation process to share the-WINDOWS7 version, including the aspects of the content, I hope that the PHP tutorial interested in a friend helpful.