konradmichalik/composer-dependency-age 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

Coverage CGL Tests Supported PHP Versions

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.

composer-hook-focus.png

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

composer-command.png

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

composer-hook.png

📝 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 我们能提供哪些服务?
定制开发 / 二次开发

基于 konradmichalik/composer-dependency-age 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 953
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 35
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2025-09-03