Linux上安装Composer

  1. 下载Composer包

    curl -sS https://getcomposer.org/installer | php
  2. 安装Compose

    mv composer.phar /usr/local/bin/composer
  3. 查看安装Composer是否成功

    composer -v
  4. 如果出现版本号说明安装成功。

  5. 设置中国镜像

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

你可能感兴趣的:(php,linux)