Yii, CodeIgniter, CakePHP, ThinkPHP, Laravel, Symfony Zend 七大 PHP 框架的 Composer 安装方法

PHP 的框架各种都有,各种都流行,今天暂时不比较,只是安装一下。 假定以下所有都安装在 Web 服务器对应的 DocumentRoot 目录下。

Yii 安装文档官网连接:
https://www.yiiframework.com/download#offline-documentation
$ composer create-project --prefer-dist yiisoft/yii2-app-basic yii2-basic
将会创建一个 yii2-basic 的目录,
访问: http://localhost/yii2-basic/web

CodeIgniter(CI) 的安装文档: https://www.codeigniter.com/userguide3/installation/index.html
官方安装为 zip 下载后解压,不推荐。
$ composer create-project kenjis/codeigniter-composer-installer codeigniter (注意:非官方)
http://localhost/codeigniter/public/
官方 CI3, github 地址: https://github.com/bcit-ci/CodeIgniter

CakePHP 安装文档:
https://github.com/cakephp/cakephp
骨架安装:(需要事先安装 PHP 的 Intl 扩展)
$ composer create-project --prefer-dist cakephp/app cakephp
访问: http://localhost/cakephp/webroot/
或者用 bin/cake server -p 8765,然后访问: http://localhost:8765/

ThinkPHP 安装文档:
5.1 GitHub: https://github.com/top-think/think/tree/5.1
$composer create-project topthink/think tp5
访问: http://localhost/tp5/public/

Laravel 安装文档:
https://laravel.com/docs/5.8/installation
$ composer create-project --prefer-dist laravel/laravel laravel
访问: http://localhost/laravel/public/

Symfony 安装文档:
https://github.com/symfony/demo
$ composer create-project symfony/symfony-demo symfony_demo
访问: http://localhost/symfony_demo/public/
或者: 运行 symfony serve 后访问 http://localhost:8000/

Zend 安装文档:
https://framework.zend.com/downloads/expressive
$ composer create-project zendframework/zend-expressive-skeleton zend
访问: http://localhost/zend/public/
或者运行 composer serve 后访问: http://localhost:8080/

作者: 甬洁网络

--移动互联网&物联网技术提供商