Symfony installation and configuration method, Symfony configuration Method _php Tutorial

Source: Internet
Author: User
Tags getting started with php

Symfony installation and configuration method, Symfony configuration method

This article describes the installation and configuration methods of Symfony. Share to everyone for your reference, as follows:

The manual installation of symfony is very simple and there is hardly much to say. Open Http://, select a symfony release from the page's selection list, and then click Next to "Download Now" to extract the downloaded package to a location on your WEB server, even if it's done. (It is usually best to choose the one with the highest version number, tgz format or zip format is just a matter of personal preference, each version of Symfony also has a "without vendor" version, but the beginner stage is best not to choose to download this version. )

Installing Symfony with composer

Symfony has a good partner called composer, below we see how to use composer to install Symfony.

Get composer

As mentioned earlier, composer is a Phar, can execute PHP code package (PHP ARchive), is a cool thing, if you are interested, more information about composer.

On the *nix system, you can run the following command to install composer automatically:

Curl-ss Https:// | Php

Composer's installation program will do some checking on the system environment, and give some suggestions for configuration modification, if possible, try to follow its instructions. When everything is ready, you can use composer to install Symfony. Run the following command:

PHP Composer.phar create-project symfony/framework-standard-edition/path/to/webroot/symfony 2.3.1

The/path/to/webroot/symfony in the above command is the path you want Symfony to be installed on, and 2.3.1 is the version number. When you see this article, this number is probably not the latest Symfony version, you can go to the Http:// page to get the latest version number, and then replace it.

Whether you are installing manually or using composer, you can finally see the file structure of your project in the installation directory of your choice.

If you are using an Apache Web server and assume that Symfony is located under the Symfony directory in the root directory, you can see the Symfony installation Success screen using the following URL.


If you use Nginx, you may need more configuration work, and further articles will be introduced later.

More readers interested in PHP related content can view this site topic: "PHP Operations Office Document Tips summary (including word,excel,access,ppt)", "PHP date and Time usage summary", "PHP Object-oriented Programming tutorial", "PHP string (string) Usage summary, "Getting Started with Php+mysql database operation" and "PHP common database Operation Skills Summary"

I hope this article is helpful to you in PHP programming.

Articles you may be interested in:

    • Symfony2 study notes of the controller usage detailed
    • An example analysis of controller usage of SYMFONY2 development
    • Symfony Core class overview
    • Ways to create a project using the Symfony command
    • Symfony implementing behavior and methods for obtaining request parameters in templates
    • Examples of shortcut variable usages for symfony templates
    • Symfony2 framework Create project and template Setup examples
    • Analysis of plugin format of Symfony2 learning notes
    • Symfony2 Study Notes System routing
    • Symfony2 Study Notes Template usage detailed
    • Symfony control layer in-depth explanation true techarticle Symfony Installation and configuration method, Symfony configuration Method This article describes the installation and configuration methods of Symfony. Share to everyone for reference, as follows: Manual installation Symfony is very simple ...

  • 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: 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.