PHP Dependency Injection

Open-source PHP projects categorized as Dependency Injection | Edit details

Top 16 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

    Project mention: On using PSR abstractions — Matthias Noback | | 2021-08-27

    Pimple doesn't implement it, but instead provides a separate PSR-11 compliant implementation

  • Scout APM

    Scout APM: A developer's best friend. Try free for 14-days. Scout APM uses tracing logic that ties bottlenecks to source code so you know the exact line of code causing performance issues and can get back to building a great product faster.

  • GitHub repo PHP-DI

    The dependency injection container for humans

    Project mention: On using PSR abstractions — Matthias Noback | | 2021-08-27

    PHP-DI, which you made, also

  • GitHub repo Opulence

    A simple, secure, and scalable PHP application framework

    Project mention: Exotic/unknown frameworks? | | 2021-05-28

    Depends on your definition of "unknown", but some of the less mainstream frameworks that I've used or checked out are Spiral, Opulence and Aphiria. There are many others, but these are actually good and well designed.

  • GitHub repo Auryn

    IoC Dependency Injector (by rdlowrey)

  • GitHub repo Container

    Small but powerful dependency injection container (by thephpleague)

  • 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)

  • Nanos

    Run Linux Software Faster and Safer than Linux with Unikernels.

  • 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: Introducing MixerAPI, a project for streamlining RESTful API development | | 2021-06-23

    Those are some of the things I sought to solve with MixerAPI. This is another project which saw the same shortcomings as I did,, I just didn't think it made sense to build a ground-up framework to solve the problem. Use something existing, build on top, and don't mess with existing workflows in the framework. Just augment them is how I feel about things at least.

  • 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: Capsule 3: Clean, Concise, Composable Dependency Injection | | 2021-09-14
  • GitHub repo kaly

    Minimalist and modern php framework

    Project mention: Capsule 3: Clean, Concise, Composable Dependency Injection | | 2021-09-14

    I've recently played with building a di container myself (relevant docs here and code here and I thought using a plain array of definition is actually working quite well.

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-09-14.


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

Project Stars
1 Symfony DI 3,542
2 Pimple 2,462
3 PHP-DI 2,219
4 Opulence 728
5 Auryn 718
6 Container 707
7 Nette DI 697
8 Aura PHP 329
9 Acclimate 217
10 Disco 135
11 aphiria 98
12 ClanCats Container 28
13 php-dependency-injection 4
14 wire-genie 2
15 bero 1
16 kaly 0
Find remote jobs at our new job board There are 24 new remote jobs listed recently.
Are you hiring? Post a new remote job listing for free.
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives