您现在的位置是: 首页 >  PHP PHP

composer操作指南

冬寂 2020-08-07 13:35:44 【PHP】 1704人已围观

composer

自己制作包 https://packagist.org/packages/logoove/

composer下载
https://getcomposer.org/Composer-Setup.exe

composer -V 版本查看
composer self-update composer升级
composer config -g repo.packagist composer https://packagist.phpcomposer.com 配置到国内全局
composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/ 阿里云
composer config -g --unset repos.packagist 取消
composer config -g repo.packagist composer https://packagist.org  国外
composer install 安装
composer update 更新
composer show 列出所有包

安装/更新 新项目

composer create-project topthink/think tp6
composer update topthink/framework

安装/更新/卸载依赖库

composer requirefzaninotto/faker
composer update fzaninotto/faker
composer remove fzaninotto/faker
很赞哦! ( 16 )

上一篇: 排序算法

下一篇: PHP对金钱进行处理

站点信息

  • 建站时间:2020-08-10
  • 文章统计100篇文章
  • 标签管理标签云
  • 统计数据百度统计
  • 微信公众号:扫描二维码,关注我