PHPackages                             bigcommerce/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. bigcommerce/injector

ActiveLibrary

bigcommerce/injector
====================

Container interop Dependency Injector.

5.0.4(2mo ago)286.3k↓25%6[3 PRs](https://github.com/bigcommerce/injector/pulls)1MITPHPPHP ^8.2

Since Dec 13Pushed 2mo ago116 watchersCompare

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

READMEChangelog (10)Dependencies (12)Versions (33)Used By (1)

bigcommerce/injector
====================

[](#bigcommerceinjector)

Dependency Injector component built on top of Pimple container.

- Also includes an AutoWiring ServiceProvider.

Local development
-----------------

[](#local-development)

### PhpStan

[](#phpstan)

To check your code with [phpstan](https://phpstan.org/), run `script/phpstan`.

**Remove errors from baseline:**While changing the code you might see the following error from the PhpStan

```
Ignored error pattern #.... was not matched in reported errors.

```

This means that the error is [no longer present](https://phpstan.org/user-guide/ignoring-errors#reporting-unused-ignores) in the code, so you can remove it from the baseline file. To do so, run `./vendor/bin/phpstan --generate-baseline=.phpstan/baseline.neon` and commit the changes.

License
-------

[](#license)

(The MIT License) Copyright (C) 2015-2017 BigCommerce Inc. All rights reserved.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

62

—

FairBetter than 99% of packages

Maintenance85

Actively maintained with recent releases

Popularity36

Limited adoption so far

Community27

Small or concentrated contributor base

Maturity87

Battle-tested with a long release history

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~63 days

Total

27

Last Release

78d ago

Major Versions

1.0.2 → 2.02017-01-14

2.1.1 → 3.0.02023-05-25

3.0.0 → 4.0.02024-06-21

4.1.2 → 5.0.02025-06-23

4.1.3 → 5.0.12025-09-07

PHP version history (6 changes)1.0PHP ^7.0

2.0.2PHP &gt;=5.6

2.0.9PHP ^7.3

v2.1.0PHP ^7.3 || ^8.0

4.0.0PHP ^8.1

5.0.0PHP ^8.2

### Community

Maintainers

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

---

Top Contributors

[![TomA-R](https://avatars.githubusercontent.com/u/1606901?v=4)](https://github.com/TomA-R "TomA-R (40 commits)")[![bc-luke](https://avatars.githubusercontent.com/u/2160087?v=4)](https://github.com/bc-luke "bc-luke (18 commits)")[![repzy](https://avatars.githubusercontent.com/u/8057340?v=4)](https://github.com/repzy "repzy (8 commits)")[![PascalZajac](https://avatars.githubusercontent.com/u/813373?v=4)](https://github.com/PascalZajac "PascalZajac (6 commits)")[![precariouspanther](https://avatars.githubusercontent.com/u/1628237?v=4)](https://github.com/precariouspanther "precariouspanther (6 commits)")[![petrkotek](https://avatars.githubusercontent.com/u/5679032?v=4)](https://github.com/petrkotek "petrkotek (2 commits)")[![bc-vincent-zhao](https://avatars.githubusercontent.com/u/2160148?v=4)](https://github.com/bc-vincent-zhao "bc-vincent-zhao (2 commits)")[![funivan](https://avatars.githubusercontent.com/u/425208?v=4)](https://github.com/funivan "funivan (1 commits)")[![scrutinizer-auto-fixer](https://avatars.githubusercontent.com/u/6253494?v=4)](https://github.com/scrutinizer-auto-fixer "scrutinizer-auto-fixer (1 commits)")

---

Tags

dipimpleinjector

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/bigcommerce-injector/health.svg)

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

###  Alternatives

[league/container

A fast and intuitive dependency injection container.

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

Yii DI container

2351.2M100](/packages/yiisoft-di)[yiisoft/injector

PSR-11 compatible injector. Executes a callable and makes an instances by injecting dependencies from a given DI container.

942.8M38](/packages/yiisoft-injector)[mrclay/props-dic

Props is a simple DI container that allows retrieving values via custom property and method names

3611.7M3](/packages/mrclay-props-dic)[mouf/pimple-interop

This project is a very simple extension to the Pimple microframework. It adds to Pimple compatibility with the container-interop APIs.

102.4M2](/packages/mouf-pimple-interop)[infocyph/intermix

A Collection of useful PHP class functions.

136.4k1](/packages/infocyph-intermix)

PHPackages © 2026

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