美文网首页
composer for Ubuntu

composer for Ubuntu

作者: Robii | 来源:发表于2020-11-03 21:13 被阅读0次

    OS:ubuntu 20.10 composer 2.0.4

    1.下载最新composer

    wget -c https://getcomposer.org/composer.phar

    【以下是阿里云地址】

    wget -c https://mirrors.aliyun.com/composer/composer.phar

    2.可执行权限

    chmod u+x composer.phar

    3.放置到安装文件夹

    mv composer.phar /usr/local/bin/composer

    4.执行命令,出现欢迎界面即成功。

    composer

    5.版本更新

    composer self-update

    6.全局配置依赖包国内镜像地址

    composer config -g repositories.packagist composer http://packagist.phpcomposer.com

    【以下是阿里云地址】

    composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/

    7.安装依赖包(guzzlehttp)

    composer require guzzlehttp/guzzle

    相关文章

      网友评论

          本文标题:composer for Ubuntu

          本文链接:https://www.haomeiwen.com/subject/ruiivktx.html