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

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

evyex/container-simple
======================

Simple container (DI)

1.2(2mo ago)02MITPHPPHP ^8.1CI passing

Since Feb 12Pushed 2mo agoCompare

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

READMEChangelog (3)Dependencies (4)Versions (6)Used By (0)

container-simple
================

[](#container-simple)

Simple PHP Dependency Injection Container implementing PSR-11 ContainerInterface with Autowiring.

Installation
------------

[](#installation)

```
composer require evyex/container-simple
```

Usage
-----

[](#usage)

```
use Evyex\ContainerSimple\Container;

$container = new Container();

// Get a service (auto-resolves dependencies)
$service = $container->get(MyService::class);

// Check if a service exists
if ($container->has(MyService::class)) {
    // ...
}
```

Features
--------

[](#features)

- Autowiring
- ContainerInterface compliant (PSR-11)
- Lightweight

Requirements
------------

[](#requirements)

- PHP 8.1+
- psr/container ^2.0

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance82

Actively maintained with recent releases

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity46

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 ~2 days

Total

3

Last Release

89d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3cf6f7b34ef681a5e160feb9bb2eeb0050d0515b38e7c6f4bde489f3d87f86fd?d=identicon)[EvgenijVy](/maintainers/EvgenijVy)

---

Top Contributors

[![evgenij-vy](https://avatars.githubusercontent.com/u/120460020?v=4)](https://github.com/evgenij-vy "evgenij-vy (24 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[symfony/dependency-injection

Allows you to standardize and centralize the way objects are constructed in your application

4.2k431.1M7.5k](/packages/symfony-dependency-injection)[illuminate/contracts

The Illuminate Contracts package.

705122.9M10.1k](/packages/illuminate-contracts)[illuminate/container

The Illuminate Container package.

31178.1M2.0k](/packages/illuminate-container)[ecotone/ecotone

Supporting you in building DDD, CQRS, Event Sourcing applications with ease.

558549.8k17](/packages/ecotone-ecotone)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

728272.9k20](/packages/civicrm-civicrm-core)[internal/dload

Downloads binaries.

98142.7k10](/packages/internal-dload)

PHPackages © 2026

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