这是我的作曲家。json文件,保存在/var/www/vhosts on production:
{
"require": {
"php": ">=7.2.0",
"ext-curl": "*",
"authorizenet/authorizenet": ">=1.8.8",
"jms/serializer": "xsd2php-dev as 0.18.0",
"google/apiclient": "^2.0",
"nategood/httpful": "^0.2.20",
"ezyang/htmlpurifier": "4.7.0",
"pear-pear.horde.org/Horde_Imap_Client": "*",
"ssilence/php-imap-client": "dev-master"
},
"repositories": [
{
"type": "pear",
"url": "https://pear.horde.org"
}
],
"config": {
"secure-http": false
},
"minimum-stability": "dev",
"prefer-stable": true,
"require-dev": {
"phpstan/phpstan": "^0.9.2"
}
}
此服务器的所有PHP代码(包括cron和本地脚本)都保存在/var/www/vhosts中。
如果我不使用依赖项,我想从该文件中删除它们。
对于每个项目(“ext curl”…“ssilence/php-imap-client”),我如何确定我是否正在使用该包?
回到autoloader之前,这是一项简单的任务,我可以
pear-pear.horde.org/Horde_Imap_Client
,但现在这可能更加困难。