konradmichalik/composer-dependency-age
Composer 安装命令:
composer require konradmichalik/composer-dependency-age
包简介
A Composer plugin that analyzes the age of your project dependencies
README 文档
README
Composer Dependency Age
A Composer plugin that analyzes the age of your project dependencies and provides neutral categorization to help you understand your dependency landscape. No risk assessment - just clear, objective information about when your dependencies were last released.
Warning
This package is in early development stage and may change significantly in the future. I am working steadily to release a stable version as soon as possible.
Note
Understanding the age of your dependencies is crucial for maintaining a healthy codebase. While newer isn't always better, knowing when your dependencies were last updated helps you make informed decisions about maintenance, security planning, and technical debt management. This tool provides objective age categorization without making assumptions about what you should do - empowering you to prioritize updates based on your project's specific needs, risk tolerance and maintenance windows.
✨ Features
- Neutral Age Analysis - Categorizes dependencies as Current, Medium, or Old based on release dates
- Release Cycle Analysis - Analyzes dependency activity patterns with 4-tier activity rating
- Multiple Output Formats - CLI table, JSON for automation, GitHub-formatted for PRs
- Flexible Filtering - Analyze all dependencies or focus on direct ones only
- Smart Caching - Caches Packagist API responses with configurable TTL for better performance
- CI/CD Ready - Perfect for automated dependency auditing in your build pipelines
- Highly Configurable - Customize thresholds, ignore lists, and output preferences
🔥 Installation
composer require konradmichalik/composer-dependency-age --dev
📊 Usage
Command
Run the command to fully analyze your dependencies:
composer dependency-age
Command Line Options
| Option | Description | Default |
|---|---|---|
--format |
Output format: cli, json, github | cli |
--direct |
Show only direct dependencies | false |
--no-dev |
Exclude development dependencies | false |
--no-colors |
Disable color output | false |
--no-cache |
Disable caching | false |
--offline |
Use cached data only | false |
--ignore |
Comma-separated packages to ignore | - |
--thresholds |
Custom age thresholds (years) | current=0.5,medium=1.0,old=2.0 |
--no-release-cycles |
Disable release cycle analysis | false |
Automatic Analysis
The plugin automatically runs after composer install and composer update operations, providing immediate feedback on your dependency landscape.
$ composer install
📝 Configuration
Configure the plugin via composer.json
{
"extra": {
"dependency-age": {
"thresholds": {
"current": 0.5,
"medium": 1.0,
"old": 2.0
},
"ignore": ["psr/log", "psr/container"],
"output_format": "cli",
"include_dev": false,
"cache_ttl": 2592000,
"event_integration": true,
"event_operations": ["install", "update"],
"event_force_without_cache": false,
"enable_release_cycle_analysis": true,
"release_history_months": 24
}
}
}
🧑💻 Contributing
Contributions are welcome! Please see CONTRIBUTING.md for guidelines.
⭐ License
This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.
konradmichalik/composer-dependency-age 适用场景与选型建议
konradmichalik/composer-dependency-age 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 953 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 09 月 03 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「dependency」 「plugin」 「composer」 「maintenance」 「analysis」 「age」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 konradmichalik/composer-dependency-age 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 konradmichalik/composer-dependency-age 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 konradmichalik/composer-dependency-age 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
CakePHP 4.x AdminLTE Theme.
A fast and intuitive dependency injection container.
This composer plugin enables installation of GravityForms WordPress plugin and its addons.
Simple ASCII output of array data
Dependency injection container for the Monolith framework.
统计信息
- 总下载量: 953
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 35
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-or-later
- 更新时间: 2025-09-03


