博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Composer: PHP package manager
阅读量:5952 次
发布时间:2019-06-19

本文共 1044 字,大约阅读时间需要 3 分钟。

To use composer, first system must satisfy php environment:

php --version

To install composer, try either:

curl -sS https://getcomposer.org/installer | phpmv composer.phar /usr/local/bin/composeryum install composer

enable packagist repo globally: [its speed seems not fast, but should better than github], global config files are located at ~/.config/composer/

composer config -g repo.packagist composer https://packagist.phpcomposer.com

locally, should have a composer.json first locally:

composer config repo.packagist composer https://packagist.phpcomposer.com

after that, writing the composer.json:

{    "require": {        "laravel/framework": "5.0.*", "mews/captcha": "~2.0" }, "minimum-stability": "dev" }

and then install files locally with composer.json:

composer install

 

some packages needs php7, so in centos we use sclo to install rh-php70, and some packages may also needs extensions like mbstring in php7 version, install them both by searching:

yum list rh-php70* |grep mbstring

 

转载于:https://www.cnblogs.com/sansna/p/7889782.html

你可能感兴趣的文章
HDU 4558 剑侠情缘
查看>>
HOWTO install Cygwin
查看>>
Java基本数据类型总结
查看>>
Select prototyping tools
查看>>
[linux] mtu查看&&设置
查看>>
性能测试诊断分析与优化培训资料打包下载
查看>>
Web API应用架构在Winform混合框架中的应用(3)--Winfrom界面调用WebAPI的过程分解...
查看>>
微服务演化
查看>>
ELASTIC SEARCH 性能调优
查看>>
jQuery笔记——jQuery选择器实例应用
查看>>
LRU
查看>>
[转]模拟芯片设计的四重境界
查看>>
C# 串口操作系列(1) -- 入门篇,一个标准的,简陋的串口例子。
查看>>
NSLog 使用
查看>>
【翻译】ASP.NET WEB API异常处理
查看>>
UDP打洞实验
查看>>
Agglomerated SSL 1.2.0 发布
查看>>
前端智勇大闯关-第二季-第三题
查看>>
windows 下使用github
查看>>
ubuntu apache fastcgi 虚拟主机安装
查看>>