Home  >  Article  >  php教程  >  symfony的安装,symfony安装

symfony的安装,symfony安装

WBOY
WBOYOriginal
2016-06-13 08:54:55884browse

symfony的安装,symfony安装

 

Symfony 是一个基于MVC的PHP框架,最新版本为2.7

工作原理

 

Synfony安装的两种方法

1.使用composer进行安装

1)下载composer http://getcomposer.org/Composer-Setup.exe安装

2)调用系统命令行

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

 

(使用composer help create-project来获得更多的帮助)

2 官网下载

 1)安装symfony安装器

   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

将下载的文件放到要安装的文件夹下

执行

php symfony

安装

$ symfony <span>new</span> my_project

 

 

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