Laravel (1)-install 4.2 in WIN7

Source: Internet
Author: User
Tags composer install
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-disttestprojectIs 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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.