Installation of Composer and Laravel 4 under Windows

Source: Internet
Author: User

1, installation composer

Composer is one of PHP's dependency management tools, the official website http://getcomposer.org/. It supports a variety of installation methods, the most convenient way for grass to develop under win is to download the Windows installer, which will directly help define the system variables so that the composer command can be used directly in any directory. Install package Address click the Open link. The basic is the next step of the brain, during which you specify the correct Php.exe file location (for example).

2, open Php_openssl expansion

This step needs to be noted that the use of integrated environment of the students may be in the integration environment in the PHP_OPENSSL expansion after the normal next step, if prompted in the next step, please manually open the PHP directory php.ini file, personally confirm Extension=php_ Whether the Openssl.dll has been turned on.

3, the installation of Laravel 4

To create a cmd.txt file in the Site directory, enter the following (note: There is a newline).

@ECHO OFFcmd /k

Save the file and change the suffix to. bat. Double-click Run cmd.bat input composer Create-project laravel/laravelyour-project-name (red font section, replace your project name) Enter, wait for composer auto-complete laravel Download the installation.

OK, the installation is complete. You can now access this Laravel's initial project through a browser http://localhost/testProject/public/note that the entry file is in the public folder under the project directory.

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.