Home > php教程 > php手册 > body text

symfony的安装,symfony安装

WBOY
Release: 2016-06-13 08:54:55
Original
888 people have browsed it

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

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

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

执行

php symfony
Copy after login

安装

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

 

 

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 Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!