Home >Backend Development >PHP Tutorial >Symfony installation, symfony installation_PHP tutorial

Symfony installation, symfony installation_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 09:44:041201browse

Symfony installation, symfony installation

Symfony installation, symfony installation_PHP tutorialSymfony is a PHP framework based on MVC, the latest version is 2.7

How it works

Two methods to install Synfony

1. Use composer to install

1) Download composer http://getcomposer.org/Composer-Setup.exe and install it

2) Call the system command line

>php composer.phar create-project symfony/framework-standard-edition /path/to/webroot/Symfony <span>'</span><span>~2.6</span>

(Use composer help create-project for more help)

2 Official website download

1) Install the symfony installer

Installation on Linux and Mac OS X
$ sudo curl -LsS http:<span>//</span><span>symfony.com/installer -o /usr/local/bin/symfony</span>
$ sudo chmod a+x /usr/local/bin/symfony
Installation on Windows
c:\> php -r <span>"</span><span>readfile('http://symfony.com/installer');</span><span>"</span> > symfony

Put the downloaded file into the folder to be installed

Execute

php symfony

Installation

$ symfony <span>new</span> my_project

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/1051323.htmlTechArticleSymfony installation, symfony installation Symfony is a PHP framework based on MVC, the latest version is 2.7 Working principle Synfony installation Two methods 1. Use composer to install 1) Download composer...
Statement:
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