PHPackages                             konradmichalik/composer-dependency-age - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. konradmichalik/composer-dependency-age

ActiveComposer-plugin[Utility &amp; Helpers](/categories/utility)

konradmichalik/composer-dependency-age
======================================

A Composer plugin that analyzes the age of your project dependencies

0952PHPCI passing

Since Sep 7Pushed 8mo agoCompare

[ Source](https://github.com/jackd248/composer-dependency-age)[ Packagist](https://packagist.org/packages/konradmichalik/composer-dependency-age)[ RSS](/packages/konradmichalik-composer-dependency-age/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Composer Dependency Age
=======================

[](#composer-dependency-age)

[![Coverage](https://camo.githubusercontent.com/fab36d80c95b250f03563fdfe9f7d78a51e7caaa9b351ae2a2c1588130f5edc4/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c73436f7665726167652f6769746875622f6a61636b643234382f636f6d706f7365722d646570656e64656e63792d6167653f6c6f676f3d636f766572616c6c73)](https://coveralls.io/github/jackd248/composer-dependency-age)[![CGL](https://camo.githubusercontent.com/6993faec7469acfb5804d07bb8ada24a278abfe7a190a91e0e6e46cf99b7f485/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6a61636b643234382f636f6d706f7365722d646570656e64656e63792d6167652f63676c2e796d6c3f6c6162656c3d63676c266c6f676f3d676974687562)](https://github.com/jackd248/composer-dependency-age/actions/workflows/cgl.yml)[![Tests](https://camo.githubusercontent.com/96bc5a842897cb2d447661947d12e9a4a178f64cd70233a424357a8950b86a7a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6a61636b643234382f636f6d706f7365722d646570656e64656e63792d6167652f74657374732e796d6c3f6c6162656c3d7465737473266c6f676f3d676974687562)](https://github.com/jackd248/composer-dependency-age/actions/workflows/tests.yml)[![Supported PHP Versions](https://camo.githubusercontent.com/4b5119fb98cd3cce7c7a2836100a64bc378820c22823b82841c8a91aa9d89213/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f6b6f6e7261646d696368616c696b2f636f6d706f7365722d646570656e64656e63792d6167652f7068703f6c6f676f3d706870)](https://packagist.org/packages/konradmichalik/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.

[![composer-hook-focus.png](docs/images/composer-hook-focus.png)](docs/images/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
----------

[](#-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
--------------

[](#-installation)

```
composer require konradmichalik/composer-dependency-age --dev
```

📊 Usage
-------

[](#-usage)

### Command

[](#command)

Run the command to fully analyze your dependencies:

```
composer dependency-age
```

[![composer-command.png](docs/images/composer-command.png)](docs/images/composer-command.png)

#### Command Line Options

[](#command-line-options)

OptionDescriptionDefault`--format`Output format: cli, json, githubcli`--direct`Show only direct dependenciesfalse`--no-dev`Exclude development dependenciesfalse`--no-colors`Disable color outputfalse`--no-cache`Disable cachingfalse`--offline`Use cached data onlyfalse`--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 analysisfalse### Automatic Analysis

[](#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](docs/images/composer-hook.png)](docs/images/composer-hook.png)

📝 Configuration
---------------

[](#-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
----------------

[](#‍-contributing)

Contributions are welcome! Please see [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.

⭐ License
---------

[](#-license)

This project is licensed under the GNU General Public License v3.0 - see the [LICENSE](LICENSE.md) file for details.

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance43

Moderate activity, may be stable

Popularity14

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity13

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/11557705846f24da32a0e6e75c460db505c1b847f081ddaa3d27f3ea27f4097b?d=identicon)[konradmichalik](/maintainers/konradmichalik)

---

Top Contributors

[![konradmichalik](https://avatars.githubusercontent.com/u/4558190?v=4)](https://github.com/konradmichalik "konradmichalik (47 commits)")

---

Tags

composercomposer-plugin

### Embed Badge

![Health badge](/badges/konradmichalik-composer-dependency-age/health.svg)

```
[![Health](https://phpackages.com/badges/konradmichalik-composer-dependency-age/health.svg)](https://phpackages.com/packages/konradmichalik-composer-dependency-age)
```

###  Alternatives

[salmanzafar/laravel-geocode

A Laravel Library to find Lat and Long of a given Specific Address

153.9k](/packages/salmanzafar-laravel-geocode)[thedmsgroup/mautic-segment-extras-bundle

Extends Mautic Lead Bundle's Lead List (Segment) functionality.

151.4k](/packages/thedmsgroup-mautic-segment-extras-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
