PHPackages                             brenoroosevelt/habemus - 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. [PSR &amp; Standards](/categories/psr-standards)
4. /
5. brenoroosevelt/habemus

ActiveLibrary[PSR &amp; Standards](/categories/psr-standards)

brenoroosevelt/habemus
======================

PSR-11 Container for Dependency Injection (auto-wiring, attributes, factories, closures, array access)

1.2.2(4y ago)374712MITPHPPHP ^7.1 || ^8.0

Since Mar 20Pushed 4y ago1 watchersCompare

[ Source](https://github.com/brenoroosevelt/habemus)[ Packagist](https://packagist.org/packages/brenoroosevelt/habemus)[ Docs](https://brenoroosevelt.github.io/habemus)[ RSS](/packages/brenoroosevelt-habemus/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (4)Versions (6)Used By (2)

Habemus
=======

[](#habemus)

[![Build](https://github.com/brenoroosevelt/habemus/actions/workflows/ci.yml/badge.svg)](https://github.com/brenoroosevelt/habemus/actions/workflows/ci.yml)[![codecov](https://camo.githubusercontent.com/dccee4d562793442749b86ef833b33d124c8c54bef0f8e7871656c78b6398ca9/68747470733a2f2f636f6465636f762e696f2f67682f6272656e6f726f6f736576656c742f686162656d75732f6272616e63682f6d61696e2f67726170682f62616467652e7376673f746f6b656e3d53315142413138494258)](https://codecov.io/gh/brenoroosevelt/habemus)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/0a170d833586598237c61496f2c22e5b37ae00f934626a5a3d35cb6d4f71d18a/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6272656e6f726f6f736576656c742f686162656d75732f6261646765732f7175616c6974792d73636f72652e706e673f623d6d61696e)](https://scrutinizer-ci.com/g/brenoroosevelt/habemus/?branch=main)[![Latest Version](https://camo.githubusercontent.com/758feb0d6740b71d989954fba4449907a45fdd1245c42dfbaa415eb3a8683457/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f6272656e6f726f6f736576656c742f686162656d75732e7376673f7374796c653d666c6174)](https://github.com/brenoroosevelt/habemus/releases)[![Software License](https://camo.githubusercontent.com/f251623e510f5909f16ae3f4e6e548dac11340b9fde1a99be26b015b39272c00/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c6174)](LICENSE.md)

Habemus is a PSR-11 compatible dependency injection container. This package provides autowiring to implement Inversion of Control (IoC) containers for PHP.

Features
--------

[](#features)

Habemus supports:

- [PSR-11](http://www.php-fig.org/psr/psr-11/) compatible.
- Auto wiring (recursively through all dependencies)
- Constructor injection.
- Setter injection.
- Property/constructor injection using PHP 8 Attributes.
- Circular dependency detection.
- Interfaces, Factories, Closures, Callbacks.
- Delegated containers.
- Container composite.
- Service providers and lazy service providers.
- Taggable services.
- Shareable instances.
- Variadic arguments in the constructor.
- Aliasing.
- Array Access.

Requirements
------------

[](#requirements)

This package supports the following versions of PHP:

- PHP 7.1
- PHP 7.2
- PHP 7.3
- PHP 7.4
- PHP 8.0

Install
-------

[](#install)

Via Composer

```
$ composer require brenoroosevelt/habemus
```

Documentation
-------------

[](#documentation)

Read the [full documentation](http://brenoroosevelt.github.io/habemus).

Contributing
------------

[](#contributing)

Please read the [Contributing](CONTRIBUTING.md) guide to learn about contributing to this project.

License
-------

[](#license)

This project is licensed under the terms of the MIT license. See the [LICENSE](LICENSE.md) file for license rights and limitations.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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

Total

5

Last Release

1527d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/82f73f1c4a1ebcd28bb29e832f0c9cd78a16bd0d57c501157ab2408bdd8817a7?d=identicon)[brenoroosevelt](/maintainers/brenoroosevelt)

---

Top Contributors

[![brenoroosevelt](https://avatars.githubusercontent.com/u/24551532?v=4)](https://github.com/brenoroosevelt "brenoroosevelt (205 commits)")

---

Tags

auto-wiringconstructor-injectiondependency-injectionioc-containerphpproperty-injectionpsr-11psr-11-compliantsetter-injectiontaggablecontainerPSR-11dependency-injectionattributesautowireauto wiringphp8-attributessetter injectionproperty injectionconstructor injection

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/brenoroosevelt-habemus/health.svg)

```
[![Health](https://phpackages.com/badges/brenoroosevelt-habemus/health.svg)](https://phpackages.com/packages/brenoroosevelt-habemus)
```

###  Alternatives

[php-di/php-di

The dependency injection container for humans

2.8k48.9M994](/packages/php-di-php-di)[slince/di

A flexible dependency injection container

20260.4k6](/packages/slince-di)[phpwatch/simple-container

A fast and minimal PSR-11 compatible Dependency Injection Container with array-syntax and without auto-wiring

1810.1k2](/packages/phpwatch-simple-container)[devanych/di-container

Simple implementation of a PSR-11 dependency injection container

124.2k3](/packages/devanych-di-container)

PHPackages © 2026

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