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

Symfony installation, symfony installation_PHP tutorial

WBOY
Release: 2016-07-13 09:44:04
Original
1154 people have browsed it

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>
Copy after login

(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
Copy after login
Installation on Windows
c:\> php -r <span>"</span><span>readfile('http://symfony.com/installer');</span><span>"</span> > symfony
Copy after login

Put the downloaded file into the folder to be installed

Execute

php symfony
Copy after login

Installation

$ symfony <span>new</span> my_project
Copy after login

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