Composer
1.1、Composer简介
是什么 ?:a dependency manager for PHP.
开发语言:PHP
官方主页:https://getcomposer.org
源码仓库:https://github.com/composer/composer
1.2、通过包管理器安装Composer
操作系统包管理器安装命令
Windowsscoopscoop install composer
WindowsChocolateychoco install -y composer
macOSHomeBrewbrew install composer
GNU/LinuxHomeBrewbrew install composer
aptsudo apt-get install -y composer
CentOSyumsudo yum install -y composer
dnfsudo dnf install -y composer
openSUSEzyppersudo zypper install -y composer
Alpine Linuxapksudo apk add composer

Arch Linux

ArcoLinux

Manjaro Linux

pacmansudo pacman -Syyu --noconfirm
sudo pacman -S    --noconfirm composer
Gentoo LinuxPortagesudo emerge composer
1.3、通过下载并运行安装脚本安装Composer

step1、安装依赖

安装时PHPToolSetcURL
运行时PHPToolSet

step2、使用curl命令下载安装脚本并执行

curl -sS https://getcomposer.org/installer | php

这个命令会下载composer.phar文件到当前目录。.pharPHP Archive(PHP 压缩包),类似于jar包, 它可以直接被php命令加载并执行:

php compose.phar --help
1.4、composer.json配置文件
1.5、composer命令