PHPackages                             webthink/psr-test-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. webthink/psr-test-container

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

webthink/psr-test-container
===========================

A PSR container implementation to be used only for testing

v1.0.0(8y ago)28081MITPHPPHP &gt;=5.4.0

Since Aug 3Pushed 7y ago1 watchersCompare

[ Source](https://github.com/webthinkgr/psr-test-container)[ Packagist](https://packagist.org/packages/webthink/psr-test-container)[ Docs](https://github.com/webthinkgr/psr-test-container)[ RSS](/packages/webthink-psr-test-container/feed)WikiDiscussions master Synced 2mo ago

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

A Simple PSR Container for Testing.
===================================

[](#a-simple-psr-container-for-testing)

[![Build Status](https://camo.githubusercontent.com/059955f2a6f2287835ab9bfe40217b6392944c76acafc4a7102622875e43509e/68747470733a2f2f7472617669732d63692e6f72672f7765627468696e6b67722f7073722d746573742d636f6e7461696e65722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/webthinkgr/psr-test-container)

A PSR container implementation to be used only for testing purposes.

Goal
----

[](#goal)

The goal of this package is be used for testing purposes where a simple container will just do the job. Sometimes while writing unit tests you might need a container that does one simple thing. Keeping entries of services. The current packages serves this goal.

Install
-------

[](#install)

Via Composer

```
$ composer require-dev webthink/psr-test-container

```

Usage
-----

[](#usage)

```
$container = new Webthink\Container\SimpleContaner([
    'service1' => new \stdClass(),
]);
$service = $container->get('service1');

```

Credits
-------

[](#credits)

- [George Mponos](https://github.com/gmponos)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community9

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

3206d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/30258b48a25c5d879451cd83ce8a2f24ab14745852c07bd40f4f24d87a6ffa51?d=identicon)[gmponos](/maintainers/gmponos)

---

Top Contributors

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

---

Tags

containerphpphp7phpunitpsr-11psr11testngtestsunit-testingpsrcontainercontainer-interopPSR-11container-interface

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/webthink-psr-test-container/health.svg)

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

###  Alternatives

[psr/container

Common Container Interface (PHP FIG PSR-11)

10.0k1.0B3.7k](/packages/psr-container)[php-di/php-di

The dependency injection container for humans

2.8k48.9M994](/packages/php-di-php-di)

PHPackages © 2026

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