PHPackages                             cspray/annotated-container - 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. [PSR &amp; Standards](/categories/psr-standards)
4. /
5. cspray/annotated-container

ActiveLibrary[PSR &amp; Standards](/categories/psr-standards)

cspray/annotated-container
==========================

Create Dependency Injection containers configured with PHP8 Attributes.

v2.3.0(1y ago)411.3k[2 PRs](https://github.com/cspray/annotated-container/pulls)5MITPHP ^8.1

Since Apr 7Compare

[ Source](https://github.com/cspray/annotated-container)[ Packagist](https://packagist.org/packages/cspray/annotated-container)[ RSS](/packages/cspray-annotated-container/feed)WikiDiscussions Synced 1mo ago

READMEChangelogDependencies (20)Versions (39)Used By (5)

### README not available

The README for this package hasn't been synced yet. View it on [GitHub](https://github.com/cspray/annotated-container).

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity73

Established project with proven stability

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.

###  Release Activity

Cadence

Every ~46 days

Recently: every ~164 days

Total

32

Last Release

421d ago

Major Versions

v0.6.0 → v1.0.02022-06-26

v1.6.0 → v2.0.0-beta12022-09-04

v2.3.0 → v3.0.0-alpha2025-03-11

PHP version history (3 changes)v0.1.0PHP ^8.0

v0.2.0PHP ^8.1

v3.0.0-alphaPHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/2abc886f86c3f0b6a1b77879f9e88ce7bb14f5029882e276e92eeb54f2875851?d=identicon)[cspray](/maintainers/cspray)

---

Tags

containerdependency-injectionattributes

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/cspray-annotated-container/health.svg)

```
[![Health](https://phpackages.com/badges/cspray-annotated-container/health.svg)](https://phpackages.com/packages/cspray-annotated-container)
```

###  Alternatives

[pimple/pimple

Pimple, a simple Dependency Injection Container

2.7k130.5M1.4k](/packages/pimple-pimple)[php-di/php-di

The dependency injection container for humans

2.8k48.9M991](/packages/php-di-php-di)[aura/di

A serializable dependency injection container with constructor and setter injection, interface and trait awareness, configuration inheritance, and much more.

356968.3k58](/packages/aura-di)[acclimate/container

Provides adapters for various third-party service containers.

219390.6k15](/packages/acclimate-container)[mrclay/props-dic

Props is a simple DI container that allows retrieving values via custom property and method names

3611.7M3](/packages/mrclay-props-dic)[slince/di

A flexible dependency injection container

20260.4k6](/packages/slince-di)

PHPackages © 2026

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