PHPackages                             cekta/di - 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. cekta/di

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

cekta/di
========

psr/container implementation for humans

v3.0.0(3mo ago)834927GPL-3.0-onlyPHPPHP &gt;=8.2CI passing

Since Sep 2Pushed 2mo ago10 watchersCompare

[ Source](https://github.com/cekta/di)[ Packagist](https://packagist.org/packages/cekta/di)[ RSS](/packages/cekta-di/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (5)Versions (16)Used By (0)

Cekta/DI - PSR-11 Container Implementation
==========================================

[](#cektadi---psr-11-container-implementation)

[![Telegram chat](https://camo.githubusercontent.com/a2edc1a897d4f52974a4fb160e854a972746fa258eaf27b19ce066f85d2235cb/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f74656c656772616d2d5255253230636861742d3137396364652e7376673f6c6f676f3d74656c656772616d)](https://t.me/dev_ru)[![Mutation testing badge](https://camo.githubusercontent.com/69e59e00cb69ea111e7ea08d58ba78504a27de5de6e44409df5443bbf3616a93/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f7374796c653d666c61742675726c3d687474707325334125324625324662616467652d6170692e737472796b65722d6d757461746f722e696f2532466769746875622e636f6d25324663656b746125324664692532466d6173746572)](https://dashboard.stryker-mutator.io/reports/github.com/cekta/di/master)[![Latest Stable Version](https://camo.githubusercontent.com/32da6447ee45ab1ad01e847dec0a038dc41f1cc575608c7b2bf930045a41bb4a/68747470733a2f2f706f7365722e707567782e6f72672f63656b74612f64692f762f737461626c65)](https://packagist.org/packages/cekta/di)[![License](https://camo.githubusercontent.com/1300636ddc6c679cf6f943e950dfee84b54b86795ae968703e2eeac78a654645/68747470733a2f2f706f7365722e707567782e6f72672f63656b74612f64692f6c6963656e7365)](https://packagist.org/packages/cekta/di)

A modern, high-performance PSR-11 Container implementation designed for developers who value simplicity and performance.

✨ Features
----------

[](#-features)

- 🚀 **Zero Runtime Overhead** - All dependencies are resolved during compilation, not at runtime
    - **No runtime reflection** - All dependency resolution happens during compilation
    - **Predictable performance** - No dynamic analysis slowing down your application
- ⚡ **OPcache Ready** - Generated code works perfectly with PHP's opcode cache
- 🔧 **Flexible Configuration** - Mix autowiring with explicit configuration
- 📦 **Full PSR-11 Compliance** - Implements the standard Container Interface
- 🔄 **Modern PHP Support** - Works with Union Types, Intersection Types, DNF Types, and variadic arguments
- 🧩 **Interface &amp; Abstract Class Support** - Full dependency injection for abstractions
- 🎯 **High Code Quality** - Rigorously tested with mutation testing
- ✅ **Easy debugging** - Generated container is plain PHP code you can read and understand

📦 Installation
--------------

[](#-installation)

```
composer require cekta/di
```

🚀 Quick Start
-------------

[](#-quick-start)

**src/Controller.php**

```
