Home > Backend Development > PHP Tutorial > Symfony2 installation methods (2 methods), symfony22_PHP tutorial

Symfony2 installation methods (2 methods), symfony22_PHP tutorial

WBOY
Release: 2016-07-12 08:59:23
Original
823 people have browsed it

Symfony2 installation methods (2 methods), symfony22 types

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

Copy after login

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.

Articles you may be interested in:

  • Symfony2’s method of implementing built-in data in doctrine
  • Detailed explanation of installing third-party Bundles instances in Symfony2
  • Symfony2 usage chapter Detailed explanation of the image uploading example made by the third-party library Upload
  • Graphic tutorial on the configuration method of Symfony2 under Nginx
  • Symfony2 session usage example analysis
  • Classic introductory tutorial on the high-performance PHP framework Symfony2
  • A classic tutorial to learn Symfony in ten minutes
  • Example analysis of Symfony data verification methods
  • Symfony form and page implementation skills
  • Examples of controller usage in Symfony2 development Analysis

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/1098965.htmlTechArticleSymfony2 installation methods (2 methods), symfony22 This article details the Symfony2 installation method. Share it with everyone for your reference, the details are as follows: 1. Composer installs Symfony Compo...
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template