PHPackages                             rollerworks/sf-container-injector - 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. rollerworks/sf-container-injector

AbandonedArchivedLibrary

rollerworks/sf-container-injector
=================================

Symfony Dependency Container Injector library

v1.0.0(12y ago)012.9k41MITPHPPHP &gt;=5.3.3

Since Mar 12Pushed 12y agoCompare

[ Source](https://github.com/rollerworks/SfContainerInjector)[ Packagist](https://packagist.org/packages/rollerworks/sf-container-injector)[ RSS](/packages/rollerworks-sf-container-injector/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (1)Versions (2)Used By (1)

SfContainerInjector
===================

[](#sfcontainerinjector)

Use this package as a replacement-proxy for getting a service from the Symfony DI container.

This should only be done when injecting the service directly would result in a circular reference.

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

[](#installation)

SfContainerInjector uses Composer to manage its dependencies.

If you don't have Composer yet, download it following the instructions on  or just run the following command:

```
curl -s http://getcomposer.org/installer | php

```

Then add the following to your `composer.json` file:

```
// composer.json
{
    // ...
    require: {
        // ...
        "rollerworks/sf-container-injector": "~1.0"
    }
}
```

Then, you can install the new dependencies by running Composer's `update`command from the directory where your `composer.json` file is located:

```
$ php composer.phar update rollerworks/sf-container-injector
```

Usage
-----

[](#usage)

Use the `Rollerworks\Component\SfContainerInjector\ContainerInjector` class were you would normally inject the container directly (remember you need to change the typehint to use the `ContainerInjector`).

Getting a service can be done by calling `get('service.id')` on the `ContainerInjector` object.

Setting services is not supported.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

4444d ago

### Community

Maintainers

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

---

Top Contributors

[![sstok](https://avatars.githubusercontent.com/u/904790?v=4)](https://github.com/sstok "sstok (3 commits)")

---

Tags

rollerworksDependency-Container

### Embed Badge

![Health badge](/badges/rollerworks-sf-container-injector/health.svg)

```
[![Health](https://phpackages.com/badges/rollerworks-sf-container-injector/health.svg)](https://phpackages.com/packages/rollerworks-sf-container-injector)
```

###  Alternatives

[rollerworks/search-bundle

RollerworksSearch Bundle

1015.8k1](/packages/rollerworks-search-bundle)

PHPackages © 2026

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