PHPackages                             matthiasnoback/phpunit-test-service-container - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. matthiasnoback/phpunit-test-service-container

ActiveLibrary[Testing &amp; Quality](/categories/testing)

matthiasnoback/phpunit-test-service-container
=============================================

Simple service container for PHPUnit tests

v3.3.0(6mo ago)1102.4k↓20.2%52MITPHPPHP ^7.1 || ^8.0CI passing

Since Dec 15Pushed 6mo ago1 watchersCompare

[ Source](https://github.com/matthiasnoback/phpunit-test-service-container)[ Packagist](https://packagist.org/packages/matthiasnoback/phpunit-test-service-container)[ Docs](https://github.com/matthiasnoback/phpunit-test-service-container)[ RSS](/packages/matthiasnoback-phpunit-test-service-container/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (7)Dependencies (2)Versions (13)Used By (2)

PHPUnit test service container
==============================

[](#phpunit-test-service-container)

[![CI](https://github.com/matthiasnoback/phpunit-test-service-container/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/matthiasnoback/phpunit-test-service-container/actions/workflows/ci.yml)

This library provides a simple service container which makes use of service providers. It also provides a base class for your test cases which provides access to such a service container.

The service container extends the [Pimple dependency injection container](http://pimple.sensiolabs.org/).

Create your own service providers to configure any services you'd like to use in your unit tests.

Read more about using a service container to configure dependencies in unit tests (or integration tests) here:

###  Health Score

52

—

FairBetter than 96% of packages

Maintenance66

Regular maintenance activity

Popularity33

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity75

Established project with proven stability

 Bus Factor1

Top contributor holds 52% 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 ~482 days

Recently: every ~662 days

Total

10

Last Release

196d ago

Major Versions

1.0.x-dev → v2.0.02015-01-20

2.0.1 → v3.0.02017-10-03

PHP version history (3 changes)v3.0.0PHP ^7.0

v3.2.1PHP ^7.0 || ^8.0

v3.3.0PHP ^7.1 || ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1193078?v=4)[Matthias Noback](/maintainers/matthiasnoback)[@matthiasnoback](https://github.com/matthiasnoback)

---

Top Contributors

[![matthiasnoback](https://avatars.githubusercontent.com/u/1193078?v=4)](https://github.com/matthiasnoback "matthiasnoback (13 commits)")[![bpolaszek](https://avatars.githubusercontent.com/u/5569077?v=4)](https://github.com/bpolaszek "bpolaszek (5 commits)")[![MichielDilissen](https://avatars.githubusercontent.com/u/22516158?v=4)](https://github.com/MichielDilissen "MichielDilissen (5 commits)")[![ruudk](https://avatars.githubusercontent.com/u/104180?v=4)](https://github.com/ruudk "ruudk (1 commits)")[![ruudvdd](https://avatars.githubusercontent.com/u/4902556?v=4)](https://github.com/ruudvdd "ruudvdd (1 commits)")

---

Tags

phpunitpimpleservice container

### Embed Badge

![Health badge](/badges/matthiasnoback-phpunit-test-service-container/health.svg)

```
[![Health](https://phpackages.com/badges/matthiasnoback-phpunit-test-service-container/health.svg)](https://phpackages.com/packages/matthiasnoback-phpunit-test-service-container)
```

###  Alternatives

[brianium/paratest

Parallel testing for PHP

2.5k118.8M754](/packages/brianium-paratest)[johnkary/phpunit-speedtrap

Find and report on slow tests in your PHPUnit test suite

78337.2M122](/packages/johnkary-phpunit-speedtrap)[spatie/phpunit-snapshot-assertions

Snapshot testing with PHPUnit

69617.9M510](/packages/spatie-phpunit-snapshot-assertions)[phpspec/prophecy-phpunit

Integrating the Prophecy mocking library in PHPUnit test cases

19454.9M1.4k](/packages/phpspec-prophecy-phpunit)[yoast/phpunit-polyfills

Set of polyfills for changed PHPUnit functionality to allow for creating PHPUnit cross-version compatible tests

18438.5M841](/packages/yoast-phpunit-polyfills)[ergebnis/phpunit-slow-test-detector

Provides facilities for detecting slow tests in phpunit/phpunit.

1468.1M72](/packages/ergebnis-phpunit-slow-test-detector)

PHPackages © 2026

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