composer linux 安装
cd /usr/local/bin
curl -s http://getcomposer.org/installer | php
chmod a+x composer.phar
alias composer='/usr/local/bin/composer.phar'
如果想要中国镜像
composer config -g repo.packagist composer https://packagist.phpcomposer.com
今天时间是:2017-07
官网: http://docs.doctrine-project....
v2.4.3 需要 php7,如没有,则 v1.34.3 官网: https://twig.sensiolabs.org/d...
得自己有帐号。v6 得要 php5.5,如没有,则 v 5.2.23
"gregwar/captcha":"1.1.2"
其实主要就是为了 post
网上查找了很多,这个是很棒的一个,特点,体积小,只有核心功能,想要多可以有中间件等等。这是一个类似 yii,laravel 的框架,但是只有很精简的功能,加载当然也超快。另外实现了 PSR-7 官网: https://www.slimframework.com...
composer.json 如下:
{
"require": {
"imagine/imagine":"0.7.1",
"doctrine/dbal":"2.5.12",
"twig/twig":"2.4.3",
"monolog/monolog":"1.22.1",
"chrisboulton/php-resque":"1.2.x",
"ezyang/htmlpurifier":"4.9.3",
"phpmailer/phpmailer":"6.0.0rc5",
"maatwebsite/excel":"2.1.17",
"gregwar/captcha":"1.1.2",
"rmccue/requests":"1.7.0",
"slim/slim":"3.8.1"
}
}