PHPackages                             camspiers/shared-dependency-injection - 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. camspiers/shared-dependency-injection

ActiveLibrary

camspiers/shared-dependency-injection
=====================================

Shared Dependency Injection

0.4.4(12y ago)11.3kPHP

Since Feb 28Pushed 12y ago2 watchersCompare

[ Source](https://github.com/camspiers/shared-dependency-injection)[ Packagist](https://packagist.org/packages/camspiers/shared-dependency-injection)[ RSS](/packages/camspiers-shared-dependency-injection/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (4)Versions (9)Used By (0)

Shared Dependency Injection
===========================

[](#shared-dependency-injection)

[![Build Status](https://camo.githubusercontent.com/5d8b0d3906b70866374713d95a4067e2adacf0a7751a76c5e99b3e1f4803cf32/68747470733a2f2f7472617669732d63692e6f72672f63616d7370696572732f7368617265642d646570656e64656e63792d696e6a656374696f6e2e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/camspiers/shared-dependency-injection)

Provides the ability to build a symfony dependency injection container which multiple unrelated module or libraries add their extensions and compiler passes to.

Installation (with composer)
============================

[](#installation-with-composer)

```
$ composer require camspiers/shared-dependency-injection:~0.2

```

Usage
=====

[](#usage)

```
use Camspiers\DependencyInjection\SharedContainerFactory;

SharedContainerFactory::requireExtensionConfigs(__DIR__ . '/..');

SharedContainerFactory::dumpContainer(
    $container = SharedContainerFactory::createContainer(
        array(),
        __DIR__ . '/services.yml'
    ),
    'SharedContainer',
    __DIR__
);
```

Unit testing
============

[](#unit-testing)

```
shared-dependency-injection/ $ composer install --dev
shared-dependency-injection/ $ vendor/bin/phpunit

```

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% 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 ~32 days

Recently: every ~46 days

Total

8

Last Release

4596d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/91d02ba78b01d0432821f6195f11d6b95aa8da31f02f8aaea7a2e7215662061a?d=identicon)[camspiers](/maintainers/camspiers)

---

Top Contributors

[![camspiers](https://avatars.githubusercontent.com/u/51294?v=4)](https://github.com/camspiers "camspiers (6 commits)")[![glenn-bautista](https://avatars.githubusercontent.com/u/375172?v=4)](https://github.com/glenn-bautista "glenn-bautista (3 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/camspiers-shared-dependency-injection/health.svg)

```
[![Health](https://phpackages.com/badges/camspiers-shared-dependency-injection/health.svg)](https://phpackages.com/packages/camspiers-shared-dependency-injection)
```

###  Alternatives

[behat/behat

Scenario-oriented BDD framework for PHP

4.0k96.8M2.0k](/packages/behat-behat)[sylius/sylius

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

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

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[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)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)

PHPackages © 2026

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