Heim  >  Artikel  >  Backend-Entwicklung  >  shan15

shan15

WBOY
WBOYOriginal
2016-07-29 09:16:19834Durchsuche

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

以上就介绍了shan15,包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn