## 序言【注意:composer有版本差异,请选择合适版本】
> #### Composer手册阅读须知(使用左右键(`<-- 和 -->`)翻页阅读)
![](https://img.kancloud.cn/0d/14/0d141b683c9c77360e33c160c769d6a5_600x356.png)
* * *
# Composer——使用说明
### V1.0版本由[看云](https://www.kancloud.cn/)独家赞助发布
Composer是 PHP 用来管理依赖(dependency)关系的工具。你可以在自己的项目中声明所依赖的外部工具库(libraries),Composer 会帮你安装这些依赖的库文件
## 常用命令:
安装命令:
方式一:composer install --ignore-platform-reqs(版本忽略)
方式二:composer require eleven26/sql-logger:~1.0.0 dev --ignore-platform-reqs
更新命令:composer update
删除命令:composer remove
## 示例:
composer require biiiiiigmonster/hasin:^1.0 --ignore-platform-reqs
composer install --ignore-platform-reqs
composer require eleven26/sql-logger:~1.0.0 dev --ignore-platform-reqs
composer install --ignore-platform-reqs
composer update
composer require eleven26/sql-logger:~1.0.0 --ignore-platform-reqs
composer remove biiiiiigmonster/hasin
composer require dev --ignore-platform-reqs
curl.cainfo = D:\phpstudy_pro\Extensions\php\php7.4.3nts\extras\ssl\cacert.pem
composer install --dev --ignore-platform-reqs
composer update --ignore-platform-reqs
"eleven26/sql-logger": "~1.0.0",
composer require "eleven26/sql-logger:~1.0.0" --dev --ignore-platform-reqs
切换成阿里镜像 composer config -g repo.packagist composer https://mirrors.aliyun.com/composer
composer require biiiiiigmonster/hasin:^1.0 --ignore-platform-reqs
composer require dcat/laravel-wherehasin --ignore-platform-reqs
composer remove biiiiiigmonster/hasin --ignore-platform-reqs
composer remove dcat/laravel-wherehasin --ignore-platform-reqs
composer require --ignore-platform-reqs
composer remove dcat/laravel-wherehasin --ignore-platform-reqs