cekta/di

psr/container implementation for humans

v2.0.0 2025-06-22 16:31 UTC

This package is auto-updated.

Last update: 2025-06-23 09:15:16 UTC


README

Telegram chat Mutation testing badge Latest Stable Version License

psr/container implementation for humans

Features

  • Zero cost
  • Supports opcache compilation (fast).
  • Supports Autowiring with automatic constructor-based configuration
  • Autowiring support Union Types, Intersection Types, DNF Types, and variadic arguments
  • Allows you to manually configure any dependency via closures.
  • Support interface and abstract classes
  • High code quality (see the badges).

Install via composer

composer require cekta/di

Example usage

Best example is workging autotest with assertation and comments