PHPackages                             4xxi/strategy-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. 4xxi/strategy-injector

AbandonedArchivedSymfony-bundle

4xxi/strategy-injector
======================

Symfony helper for implementing "Strategy" pattern

1.0.1(6y ago)0744MITPHPPHP ^7.1.3

Since Jan 31Pushed 6y ago2 watchersCompare

[ Source](https://github.com/4xxi/strategy-injector-bundle)[ Packagist](https://packagist.org/packages/4xxi/strategy-injector)[ RSS](/packages/4xxi-strategy-injector/feed)WikiDiscussions master Synced today

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

StrategyInjectorBundle
======================

[](#strategyinjectorbundle)

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

[](#installation)

1. Install component via composer

```
composer require 4xxi/strategy-injector
```

2. Add configuration yaml into `config/packages/strategy_injector.yaml` with following content:

```
strategy_injector:
    # For using strategy injector via constructor:
    # App\Interface: App\CompositeClass

    # For using strategy injector via method call:
    # App\Interface:
    #    method: 'addStrategy'
    #    class: App\CompositeClass
    #
```

Usage
-----

[](#usage)

1. Inject via constructor configuration example (that's injects all classes which implements interface on left side of declaration into composite class)

```
strategy_injector:
    App\Strategy\FooStrategyInterface: App\Strategy\CompositeFooStrategy
```

2. Inject via method

```
strategy_injector:
    App\Strategy\FooStrategyInterface:
        method: 'addStrategy'
        class: App\Strategy\CompositeFooStrategy
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity52

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

2292d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c15620e5ef34e199427dddde987be2aa0ba770ea54275bebd36c7b85d16b986a?d=identicon)[thirdparty@4xxi.com](/maintainers/thirdparty@4xxi.com)

---

Top Contributors

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

---

Tags

bundlepatternstrategysymfony

### Embed Badge

![Health badge](/badges/4xxi-strategy-injector/health.svg)

```
[![Health](https://phpackages.com/badges/4xxi-strategy-injector/health.svg)](https://phpackages.com/packages/4xxi-strategy-injector)
```

###  Alternatives

[symfony/security-bundle

Provides a tight integration of the Security component into the Symfony full-stack framework

2.5k172.9M1.8k](/packages/symfony-security-bundle)[sonata-project/entity-audit-bundle

Audit for Doctrine Entities

644989.8k1](/packages/sonata-project-entity-audit-bundle)

PHPackages © 2026

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