1. 创建项目(一般用于框架):
composer  create-project  topthink/thinkphp  lee

下载后的目录是这样的: 2. 下载php类库:

composer  require  topthink/thinkphp

下载后的目录是这样的: 3. 升级包:

composer  update  orderlee/orderlee
  1. 删除包:
composer  remove  orderlee/orderlee