PHPackages                             ghosty/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. ghosty/container

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

ghosty/container
================

Simple small dependency injection container

v1.0.8(1y ago)0652MITPHP

Since May 29Pushed 1y agoCompare

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

READMEChangelogDependencies (2)Versions (11)Used By (2)

[![](https://camo.githubusercontent.com/69d8bad57fdbfb999dccbdcab7131a8007919fde4a8bbcc3bccf976342ad2a2f/68747470733a2f2f67686f7374797068702e6769746875622e696f2f6173736574732f69636f6e732f4c6f676f5f7469746c652e737667)](https://ghostyphp.github.io/docs/Components/Container.html)

[![](https://camo.githubusercontent.com/d7c6c93b4f31c5f05c8c687f0b6076ed7f8e795bbd51d086708b084d4612ec5a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f766965772d446f63756d656e746174696f6e2d626c75653f7374796c653d666f722d7468652d6261646765)](https://ghostyphp.github.io/docs/Components/Container.html)

Introduction
------------

[](#introduction)

Ghosty Container is a small lightweight ServiceContainer that allows you to use DI in your projects.

Learning
--------

[](#learning)

[Documentation](https://ghostyphp.github.io/docs/Components/Container.html) for Ghosty Container Component can be found on the Ghosty [website](https://ghostyphp.github.io/docs/Components/Container.html).

License
-------

[](#license)

The Ghosty Http Foundation is open-sourced software licensed under the [MIT license](https://opensource.org/license/mit).

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~12 days

Recently: every ~0 days

Total

9

Last Release

618d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d6be63d2e00c01cda03e8e0a314d1714133bc0839da7adb72ef75afa8e7972af?d=identicon)[AnvilM](/maintainers/AnvilM)

---

Top Contributors

[![AnvilM](https://avatars.githubusercontent.com/u/94012493?v=4)](https://github.com/AnvilM "AnvilM (15 commits)")

---

Tags

containerdependency-injectiondi

### Embed Badge

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

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

###  Alternatives

[php-di/php-di

The dependency injection container for humans

2.8k48.9M994](/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)[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)[capsule/di

A PSR-11 compliant autowiring dependency injection container.

2857.5k2](/packages/capsule-di)

PHPackages © 2026

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