This article details the Symfony2 installation method. Share it with everyone for your reference, the details are as follows:
1. Composer installs Symfony
The method of installing Symfony in Composer is introduced in the previous article "Ten Minutes Getting Started with Symfony"
2. Install Symfony with Symfony Installer
Here we focus on the second method of installing Symfony using Symfony Installer
1. Install Symfony Installer
Console execution command
[Sun@localhost html]$ curl -LsS http://symfony.com/installer > 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 a system global command to execute the Symfony installer
2. Create project
Create a project named Blog in the web root directory
Copy code The code is as follows: [Sun@localhost html]$ symfony new Blog
This command creates a new project named Blog, based on the latest stable Symfony version. Additionally, the installer checks whether your system meets the technical requirements to execute Symfony applications. If not, you'll see a list of changes needed to meet those requirements.
The Symfony application named Blog is now installed. As for how to configure it, it is described in detail in "Symfony: Ten Minutes Getting Started".
Permanent address of this article: http://blog.it985.com/7482.html
This article comes from IT985 blog. Please indicate the source and corresponding link when reprinting.
Readers who are interested in more content related to the PHP framework can check out the special topics of this site: "Summary of PHP Excellent Development Framework", "Introduction Tutorial on Codeigniter", "Advanced Tutorial on CI (CodeIgniter) Framework", "Introduction to Yii Framework and Summary of common techniques" and "ThinkPHP introductory tutorial"
I hope this article will be helpful to everyone’s PHP program design based on the Symfony framework.