Laravel is currently the most popular MVC Framework for PHP developers outside China. The current version is 4.2, And the PHP version must be 5.4 +. Laravel uses Composer to install and manage dependencies. Therefore, you must first install Composer.1. install Composer Official Website: getcomposer. orgwindows installation package address: getcomposer. orgComposer
Laravel is currently the most popular MVC Framework for PHP developers outside China. The current version is 4.2, And the PHP version must be 5.4 +. Laravel installs and manages dependencies through Composer, so first install Composer. 1. Install Composer Official Website: http://getcomposer.org/windows Installation Package address: http://getcomposer.org/Composer
Laravel is currently the most popular MVC Framework for PHP developers outside China. The current version is 4.2, And the PHP version must be 5.4 +.
Laravel uses Composer to install and manage dependencies. Therefore, you must first install Composer.
1. Install Composer
Official Website: http://getcomposer.org/
Windows Installation Package address:
Http://getcomposer.org/Composer-Setup.exe
Click to install
The installation period refers to the location of php.exe.
2. Enable php_openssl Extension
Open php. ini and check that extension = php_openssl.dll is enabled. PHP5 + is enabled by default.
3. Install PHP4.2
Create cmds.txt in the website directory and enter the following content:
@ Echo off cmd/k
Rename it cmds. bat and double-click it to run. Note that it cannot be named cmd. bat.
composer create-project laravel/laravel testproject --prefer-disttestproject
Is your project name, without adding-- Prefer-dist: the entire project will be installed after it is large. The installation speed depends on the speed you connect to github. If you think online installation is too slow, you can install github manually: https://github.com/laravel/laravel/archive/master.zipdecompress and run composer install in the directory.
The command to update the Framework is:
php composer.phar update
Original article address: Laravel (1)-install 4.2 in WIN7. Thank you for sharing it with me.