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. lcobucci/di-builder

ActiveLibrary

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

Dependency Injection Builder for PHP applications

8.1.0(6mo ago)34186.4k↓30.4%6[9 PRs](https://github.com/lcobucci/di-builder/pulls)6BSD-3-ClausePHPPHP ~8.3.0 || ~8.4.0 || ~8.5.0CI failing

Since Apr 15Pushed 1mo ago2 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 8.2.x Synced 1mo ago

READMEChangelog (10)Dependencies (15)Versions (69)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/633988d70bd27f7f779cd5af56c750f92b475e9f28f189a28dd15a1d7f673ea7/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6c636f62756363692f64692d6275696c6465722f706870756e69742e796d6c3f6272616e63683d372e342e78267374796c653d666c61742d737175617265)](https://github.com/lcobucci/di-builder/actions?query=workflow%3A%22PHPUnit%20Tests%22+branch%3A7.4.x)[![Code Coverage](https://camo.githubusercontent.com/8b0d9f63541d6458f42e7a5a1b30d399d804dd78884bd2f609d94fb28ba2b286/68747470733a2f2f636f6465636f762e696f2f67682f6c636f62756363692f64692d6275696c6465722f6272616e63682f372e312e782f67726170682f62616467652e737667)](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

65

—

FairBetter than 99% of packages

Maintenance79

Regular maintenance activity

Popularity43

Moderate usage in the ecosystem

Community25

Small or concentrated contributor base

Maturity95

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 ~79 days

Recently: every ~116 days

Total

60

Last Release

89d ago

Major Versions

3.1.x-dev → 4.0.02015-09-18

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

PHP version history (11 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

### 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] (476 commits)")[![lcobucci](https://avatars.githubusercontent.com/u/201963?v=4)](https://github.com/lcobucci "lcobucci (435 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

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[simplesamlphp/simplesamlphp

A PHP implementation of a SAML 2.0 service provider and identity provider.

1.1k12.4M193](/packages/simplesamlphp-simplesamlphp)[sulu/sulu

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

1.3k1.3M152](/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.0k15.4k](/packages/prestashop-prestashop)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)

PHPackages © 2026

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