Installing Symfony with composer

Source: Internet
Author: User

Some recent projects will use the Symfony framework, the first problem is the Symfony framework download and installation, Symfony required PHP environment more than 5.5, requires PHP version of the switch. Using the Windows version of the installation is more cumbersome and error-prone, error messages will be explained otherwise. The method I used was to install using composer.

Composer is a tool used in PHP to manage dependency (dependency) relationships. You can declare your dependencies on the External tool Library (libraries) in your project, and composer will help you install these dependent library files.

The first step is to install the composer, and the method used is next-->next-->finished simpler method. Remember to correspond to the PHP version.

The standard for the test installation is: Type: Composer, output composer:

The location of the installed composer has always been my concern:

Secret key Location:

Now you can safely install the symfony. It is installed under the windowns,

Global Installation composer

Start with installing Composer globally.

Installing Symfony applications with composer

Once Composer is installed on your computer, execute the create-project command to create a new Symfony application based on its LA Test Stable version:

If you need to base your application on a specific Symfony version, provide that version as the second argument of the command:

The second one is entered directly on the command line. The next is a long wait.

Installing Symfony with composer

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.