Symfony2 Installation Method (2 methods) _php instance

Source: Internet
Author: User
Tags codeigniter
This article describes in detail the method of Symfony2 installation. Share to everyone for your reference, as follows:

First, composer installation Symfony

Composer installation Symfony method in the previous article "Symfony 10 minutes to get started" is introduced

Second, Symfony installer installation Symfony

Here to highlight the second method of Symfony installer installation Symfony

1. Install Symfony Installer

Console execution Commands

[Sun@localhost html]$ curl-lss > Symfony.phar[root@localhost html]# mv Symfony.phar/ Usr/local/bin/symfony[root@localhost html]# chmod a+x/usr/local/bin/symfony

Now you can use Symfony as the system global command to execute the symfony Setup program.

2. Create a project

Create a project named blog under the Web root directory
Copy the Code code as follows: [Sun@localhost html]$ symfony New Blog
This command creates a new project called blog, based on the latest stable version of Symfony. Additionally, the installer checks to see if your system meets technical requirements to execute the symfony application. If not, you will see a list of changes that need to meet these needs.

The Symfony application, called a blog, is installed. As for how to configure, in the "Symfony 10 minutes of introduction" in detail.

Permanent address of this article:
This article is from IT985 blog, please indicate the source and corresponding link when reproduced.

Read more about PHP framework related content Readers can view this site: "PHP Excellent Development Framework Summary", "CodeIgniter Introductory Tutorial", "CI (codeigniter) Framework Advanced Tutorial", "Yii framework Introduction and common skills Summary" and " thinkphp Getting Started Tutorial "

It is hoped that this article is helpful to the PHP program design based on Symfony framework.

  • Related Article

    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.