PHPackages                             acvos/bubbles - 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. acvos/bubbles

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

acvos/bubbles
=============

Bubbles DI Container

1.0.1(10y ago)130MITPHPPHP &gt;=5.5.9

Since May 28Pushed 10y ago1 watchersCompare

[ Source](https://github.com/acvos/bubbles-container)[ Packagist](https://packagist.org/packages/acvos/bubbles)[ RSS](/packages/acvos-bubbles/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (7)Versions (3)Used By (0)

Bubbles DI
==========

[](#bubbles-di)

[![Build Status](https://camo.githubusercontent.com/32f2fece5ed7b85aa2ed397590b0d4114d4beac27e5fbed9730520d844547d65/68747470733a2f2f7472617669732d63692e6f72672f6163766f732f627562626c65732d636f6e7461696e65722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/acvos/bubbles-container)

Minimalistic, extensible, lazy dependency injection container.

### Why?

[](#why)

It's always good to follow best practices even when you don't use a full-stack framework. If you are writing a small, focused back-end service or script, but still want the full power of DI, Bubbles would help turning your plain old PHP classes into injectable services.

### How?

[](#how)

Installation

```
composer require acvos/bubbles
```

Usage

```
// Instantiating Bubbles facade
$bubbles = new Acvos\Bubbles\ContainerManager();

// Obtaining new DI container
$container = $bubbles->spawn();

// Configuring dependencies
$container
    ->register('zzz', 200)
    ->register('test.service', 'Acvos\Bubbles\Example\TestService')
        ->addDependency('Setter injection example', 'bob')
        ->addDependency('@zzz', 'bar')
        ->addDependency(100, 'foo')
    ->register('test.another.service', 'Acvos\Bubbles\Example\TestService')
        ->addDependency('@test.service')
        ->addDependency('zzz');

// Getting our class instance as a DI service
$service = $container->get('test.another.service');
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

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

Total

2

Last Release

4008d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/fbba7714fcd9662c03a5d82bc74fbc0c049c42f3c5fb198ab7aad643e3e01f00?d=identicon)[acvos](/maintainers/acvos)

---

Top Contributors

[![acvos](https://avatars.githubusercontent.com/u/1287002?v=4)](https://github.com/acvos "acvos (31 commits)")

---

Tags

containerconfigurationdependencyinjectiondi

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/acvos-bubbles/health.svg)

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

###  Alternatives

[league/container

A fast and intuitive dependency injection container.

86787.8M343](/packages/league-container)[capsule/di

A PSR-11 compliant autowiring dependency injection container.

2857.5k2](/packages/capsule-di)[miladrahimi/phpcontainer

Dependency injection (IoC) container for PHP projects

1322.7k2](/packages/miladrahimi-phpcontainer)

PHPackages © 2026

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