PHP Dependency Injection

Open-source PHP projects categorized as Dependency Injection

Top 15 PHP Dependency Injection Projects

  • GitHub repo Symfony DI

    The DependencyInjection component allows you to standardize and centralize the way objects are constructed in your application.

  • GitHub repo Pimple

    A small PHP dependency injection container

  • GitHub repo PHP-DI

    The dependency injection container for humans

    Project mention: PHP dependency container confusion | | 2021-05-05
  • GitHub repo Opulence

    A simple, secure, and scalable PHP application framework

  • GitHub repo Auryn

    IoC Dependency Injector (by rdlowrey)

  • GitHub repo Container

    Small but powerful dependency injection container

  • GitHub repo Nette DI

    💎 Flexible, compiled and full-featured Dependency Injection Container with perfectly usable autowiring and support for all new PHP 7 features. (by nette)

  • GitHub repo Aura PHP

    Dependency Injection System

  • GitHub repo Acclimate

    Adapters for PHP framework containers to an interoperable interface

  • GitHub repo Disco

    PSR-11 compatible Dependency Injection Container for PHP.

  • GitHub repo aphiria

    A simple, extensible REST API framework for PHP

    Project mention: Is any one actually using PHP generators in their projects? | | 2021-05-09

    I use them as a micro-optimization in my router. Whenever I find a potential matching route, I yield return it and check it against constraints, eg does the HTTP verb match. This way, I don't have to grab all potential route matches prior to checking constraints.

  • GitHub repo ClanCats Container

    🚀 PHP Service Container with fast and cachable dependency injection. (by ClanCats)

    Project mention: PHP Service Container with a special markup language | | 2021-05-06
  • GitHub repo php-dependency-injection

    PHP Dependency Injection Container PSR-11

    Project mention: PHP - Create Dependency Injection Container PSR-11 like PHP-DI (DI) | | 2021-02-17

    Ideal for small project Simple and easy!

  • GitHub repo wire-genie

    Autowiring Tool & Dependency Provider.

    Project mention: PHP 8 performance 🐘🐘🐘🐘🐘🐘🐘🐘🚀 | | 2020-11-25

    dakujem / wire-genie

  • GitHub repo bero

    Bero is a dependency injection container for PHP

    Project mention: Using /** @var for typehints | | 2021-03-24
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2021-05-09.


What are some of the best open-source Dependency Injection projects in PHP? This list will help you:

Project Stars
1 Symfony DI 3,409
2 Pimple 2,429
3 PHP-DI 2,145
4 Opulence 723
5 Auryn 709
6 Container 685
7 Nette DI 667
8 Aura PHP 323
9 Acclimate 215
10 Disco 135
11 aphiria 88
12 ClanCats Container 28
13 php-dependency-injection 4
14 wire-genie 2
15 bero 1