PHP Dependency Injection

Open-source PHP projects categorized as Dependency Injection

Top 23 PHP Dependency Injection Projects

Dependency Injection
  1. hyperf

    🚀 A coroutine framework that focuses on hyperspeed and flexibility. Building microservice or middleware with ease.

  2. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  3. Symfony DI

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

  4. PHP-DI

    The dependency injection container for humans

  5. Pimple

    A small PHP dependency injection container

  6. Nette DI

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

  7. Container

    Small but powerful dependency injection container (by thephpleague)

  8. Auryn

    IoC Dependency Injector (by rdlowrey)

  9. Opulence

    A simple, secure, and scalable PHP application framework

  10. Aura PHP

    Dependency Injection System

  11. di

    PSR-11 compatible DI container and injector (by yiisoft)

  12. Acclimate

    Adapters for PHP framework containers to an interoperable interface

  13. aphiria

    A simple, extensible REST API framework for PHP

  14. Disco

    PSR-11 compatible Dependency Injection Container for PHP. (by bitExpert)

  15. php-di-container-benchmarks

    Benchmark for some popular PHP Dependency Injection Containers.

  16. di52

    The dependency injection container for streamlined WordPress development. Easily manage and inject dependencies for efficient and hassle-free app creation.

  17. ClanCats Container

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

  18. laravel-autowire-config

    Inject your laravel configuration values through DI

  19. syringe

    Dependency injection library for PHP8 (by giuseppe998e)

  20. PointArt

    Pointart: A minimalist, modern approach and flexible PHP micro-framework built for the modern web.

    Project mention: How I Turned GitHub into a Headless CMS | dev.to | 2026-03-23

    After publishing my PHP micro-framework PointArt, I built a website for it. However, the site needed some dynamic content — especially the changelog and roadmap — to update the moment something changes on GitHub.

  21. di

    Lightweight and easy-to-use dependency injection library for PHP to simplify object management and promote loose coupling. (by commonphp)

  22. Resolve

    A simple PSR-11 compliant dependency injector. (by nimbly)

  23. cloud-casstle-di-container

    ⚡ High-performance PSR-11 DI container for PHP 8.1+ | 500k op/s | 3-4x faster than Symfony DI | Autowiring, Attributes, Compiled Container

    Project mention: Building the Fastest DI Container for PHP: CloudCastle DI v2.0 | dev.to | 2025-10-16

    GitHub: https://github.com/zorinalexey/cloud-casstle-di-container Documentation: See repo for 4-language docs Test Reports: Detailed comparisons included 🤝 Contributing

  24. bero

    Bero is a dependency injection container for PHP

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

PHP Dependency Injection discussion

Log in or Post with

PHP Dependency Injection related posts

  • How I Turned GitHub into a Headless CMS

    1 project | dev.to | 23 Mar 2026
  • Which DI container do you use and why?

    3 projects | /r/PHP | 7 Dec 2023
  • The Evolution of CommonPHP Framework: Thanks to Your Input

    3 projects | /r/PHPhelp | 28 Jun 2023
  • Reusing PHP code (with GIFs)

    1 project | dev.to | 18 Apr 2023
  • In your opinion, which existing PHP framework can become as popular as Symphony or Laravel?

    3 projects | /r/PHP | 19 Mar 2023
  • Qual conceito de programação você tem dificuldade de entender?

    2 projects | /r/brdev | 17 Feb 2023
  • Any good no framework PHP MYSQL web app in github, I can learn from?

    6 projects | /r/PHP | 1 Feb 2023
  • A note from our sponsor - SaaSHub
    www.saashub.com | 15 Jun 2026
    SaaSHub helps you find the best software and product alternatives Learn more →

Index

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

# Project Stars
1 hyperf 6,849
2 Symfony DI 4,166
3 PHP-DI 2,773
4 Pimple 2,666
5 Nette DI 924
6 Container 867
7 Auryn 724
8 Opulence 718
9 Aura PHP 352
10 di 236
11 Acclimate 219
12 aphiria 142
13 Disco 139
14 php-di-container-benchmarks 78
15 di52 72
16 ClanCats Container 33
17 laravel-autowire-config 13
18 syringe 11
19 PointArt 10
20 di 6
21 Resolve 5
22 cloud-casstle-di-container 5
23 bero 2

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com

Did you know that PHP is
the 14th most popular programming language
based on number of references?