PHPackages                             lcobucci/di-builder - 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. [Framework](/categories/framework)
4. /
5. lcobucci/di-builder

ActiveLibrary[Framework](/categories/framework)

lcobucci/di-builder
===================

Dependency Injection Builder for PHP applications

9.0.0(2mo ago)34190.6k↑67%6[1 issues](https://github.com/lcobucci/di-builder/issues)[3 PRs](https://github.com/lcobucci/di-builder/pulls)6BSD-3-ClausePHPPHP ~8.4.0 || ~8.5.0CI passing

Since Apr 15Pushed yesterday2 watchersCompare

[ Source](https://github.com/lcobucci/di-builder)[ Packagist](https://packagist.org/packages/lcobucci/di-builder)[ Docs](https://github.com/lcobucci/di-builder)[ GitHub Sponsors](https://github.com/lcobucci)[ Patreon](https://www.patreon.com/lcobucci)[ RSS](/packages/lcobucci-di-builder/feed)WikiDiscussions 9.1.x Synced yesterday

READMEChangelog (10)Dependencies (30)Versions (76)Used By (6)

DI Builder
==========

[](#di-builder)

[![Total Downloads](https://camo.githubusercontent.com/69be388ce44a2c707413f4c2bf7b8bf23b556e13c8176147922942faa4920e2f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c636f62756363692f64692d6275696c6465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/lcobucci/di-builder)[![Latest Stable Version](https://camo.githubusercontent.com/7f4025c77a386f53e0b24bdd2e10a85dfd030062688b6b4569d18cee99fa309c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c636f62756363692f64692d6275696c6465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/lcobucci/di-builder)[![Unstable Version](https://camo.githubusercontent.com/e0f053fb99610859227adf3e2c669ceb7730e60201d8f47cbc8fb02b7f1ae520/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f767072652f6c636f62756363692f64692d6275696c6465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/lcobucci/di-builder)

[![Build Status](https://camo.githubusercontent.com/5200ae8d80151e9b10c6154fb8a9e4214942c01437089eeb3ba5ee35f85e5464/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6c636f62756363692f64692d6275696c6465722f706870756e69742e796d6c3f6272616e63683d392e302e78267374796c653d666c61742d737175617265)](https://github.com/lcobucci/di-builder/actions?query=workflow%3A%22PHPUnit%20Tests%22+branch%3A9.0.x)[![Code Coverage](https://camo.githubusercontent.com/a1fb015518ab05bd88fdd52b21bda59eb4d09a3f8b0a5ae2067109d6f22141a6/68747470733a2f2f636f6465636f762e696f2f67682f6c636f62756363692f64692d6275696c6465722f6272616e63682f382e322e782f67726170682f62616467652e737667)](https://codecov.io/gh/lcobucci/di-builder)

Library that makes easier the creation of compiled containers using the [Symfony DI Component](http://symfony.com/doc/current/components/dependency_injection/introduction.html).

Installation
------------

[](#installation)

This package is available on [Packagist](http://packagist.org/packages/lcobucci/di-builder), you can install it using [Composer](http://getcomposer.org).

```
composer require lcobucci/di-builder
```

Usage
-----

[](#usage)

Please read our documentation at .

License
-------

[](#license)

The project is licensed under the BSD-3-Clause license, see [LICENSE](LICENSE) file.

###  Health Score

69

—

FairBetter than 100% of packages

Maintenance92

Actively maintained with recent releases

Popularity44

Moderate usage in the ecosystem

Community25

Small or concentrated contributor base

Maturity96

Battle-tested with a long release history

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~78 days

Recently: every ~60 days

Total

63

Last Release

2d ago

Major Versions

4.1.x-dev → 5.0.02017-01-05

5.8.0 → 6.0.02020-09-06

6.1.x-dev → 7.0.02020-10-01

7.5.x-dev → 8.0.02024-11-10

8.2.x-dev → 9.0.02026-04-13

PHP version history (12 changes)1.0.0PHP &gt;=5.3

3.0.0PHP &gt;=5.5

5.0.0PHP ~7.1

5.1.0PHP ^7.1

5.5.0PHP ^7.2

5.6.0PHP ^7.3 || ^8.0

5.7.0PHP ^7.4 || ^8.0

7.1.0PHP ^8.0

7.3.0PHP ~8.2.0

7.5.x-devPHP ~8.2.0 || ~8.3.0 || ~8.4.0

8.1.0PHP ~8.3.0 || ~8.4.0 || ~8.5.0

9.0.0PHP ~8.4.0 || ~8.5.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/201963?v=4)[Luís Cobucci](/maintainers/lcobucci)[@lcobucci](https://github.com/lcobucci)

---

Top Contributors

[![renovate[bot]](https://avatars.githubusercontent.com/in/2740?v=4)](https://github.com/renovate[bot] "renovate[bot] (533 commits)")[![lcobucci](https://avatars.githubusercontent.com/u/201963?v=4)](https://github.com/lcobucci "lcobucci (451 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (322 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (277 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (100 commits)")[![rdohms](https://avatars.githubusercontent.com/u/94331?v=4)](https://github.com/rdohms "rdohms (2 commits)")[![carusogabriel](https://avatars.githubusercontent.com/u/16328050?v=4)](https://github.com/carusogabriel "carusogabriel (2 commits)")[![agustingomes](https://avatars.githubusercontent.com/u/15325886?v=4)](https://github.com/agustingomes "agustingomes (1 commits)")[![lgrossi](https://avatars.githubusercontent.com/u/34237492?v=4)](https://github.com/lgrossi "lgrossi (1 commits)")

---

Tags

dependency-injectionhacktoberfestdependency-injection

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/lcobucci-di-builder/health.svg)

```
[![Health](https://phpackages.com/badges/lcobucci-di-builder/health.svg)](https://phpackages.com/packages/lcobucci-di-builder)
```

###  Alternatives

[symfony/framework-bundle

Provides a tight integration between Symfony components and the Symfony full-stack framework

3.6k251.7M11.6k](/packages/symfony-framework-bundle)[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M386](/packages/easycorp-easyadmin-bundle)[pimcore/pimcore

Content &amp; Product Management Framework (CMS/PIM/E-Commerce)

3.8k3.8M508](/packages/pimcore-pimcore)[typo3/cms

TYPO3 CMS is a free open source Content Management Framework initially created by Kasper Skaarhoj and licensed under GNU/GPL.

1.2k1.9M122](/packages/typo3-cms)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.4M203](/packages/sulu-sulu)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.1k17.8k](/packages/prestashop-prestashop)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
