szeidler/composer-drupal-unused
Composer 安装命令:
composer require szeidler/composer-drupal-unused
包简介
README 文档
README
The Composer Drupal Unused package returns a list of Drupal Composer Packages that are not installed in your Drupal installation.
This plugin does not require a fully installed and boostrapped Drupal installation. It just parses the composer.json
and typical configuration files in Drupal.
Requirements
- PHP 8.1 or greater
- Composer
Installation
Add Composer Drupal Unused as a composer dependency.
composer require szeidler/composer-drupal-unused:^1.0
or global
composer global require szeidler/composer-drupal-unused:^1.0
Usage
List unused Drupal packages
composer unused-drupal-packages
The command accepts the following options.
--config-dirDefine the path to your config directory. Defaults toconfig/sync.--removeRemoves the identified unused packages from composer.lock and composer.json.
The command will list up Drupal packages that are declared as root level dependencies your composer.json, but not enabled in Drupal.
It will look up the core.extension.yml from the given Drupal Configuration Management directory. In addition it
will look up config_split config files to see if a module is conditionally enabled.
Remove option
You should be careful using the plugin using the --remove function. Always review the changes. There might be edge
cases where the Composer package name does not match the Drupal module machine name. The script would identify the
package as unused and therefore delete it.
Credits
Stephan Zeidler for Ramsalt Lab AS
License
The MIT License (MIT)
szeidler/composer-drupal-unused 适用场景与选型建议
szeidler/composer-drupal-unused 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 789 次下载、GitHub Stars 达 1, 最近一次更新时间为 2025 年 01 月 15 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 szeidler/composer-drupal-unused 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 szeidler/composer-drupal-unused 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 789
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 7
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-01-15