PHPackages                             strident/phimple - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. strident/phimple

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

strident/phimple
================

Simple dependency injection container, inspired by Pimple.

2.0.3(11y ago)03301MITPHPPHP &gt;=5.4

Since May 8Pushed 11y ago3 watchersCompare

[ Source](https://github.com/strident/Phimple)[ Packagist](https://packagist.org/packages/strident/phimple)[ Docs](https://github.com/Strident/Phimple)[ RSS](/packages/strident-phimple/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (7)Dependencies (2)Versions (8)Used By (0)

\#Phimple [![Build Status](https://camo.githubusercontent.com/8dbe576fdadb57b4027280b505f756c8ad25e2e1b1f1289e50f6c605fd502cae/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f5374726964656e742f5068696d706c652e737667)](https://travis-ci.org/Strident/Phimple)[![Coverage](https://camo.githubusercontent.com/32370668b085368c88c366dca665509e5da1583827e5f8eb764532737938e70a/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636c696d6174652f636f7665726167652f6769746875622f5374726964656e742f5068696d706c652e737667)](https://codeclimate.com/github/Strident/Phimple)[![Code Climate](https://camo.githubusercontent.com/2e864bc9af28324f3e8941cdaf2e3217969135b65a76fef0c33b3ddd5c414ece/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636c696d6174652f6769746875622f5374726964656e742f5068696d706c652e737667)](https://codeclimate.com/github/Strident/Phimple)

Phimple is an extremely lightweight dependency injection container, heavily inspired by [Pimple](https://github.com/silexphp/Pimple).

\##Installation

Phimple is available as a Composer package. It can be included in your project by running the following command:

```
$ composer require strident/phimple ~2.0

```

\##Usage

Phimple is easy to get going with (just like Pimple really):

```
use Phimple\Container;

$container = new Container();
```

Phimple differs from Pimple internally in some ways, and also in it's API. The API change was the main reason I decided to develop Phimple. There are 2 concepts; **services** and **parameters**.

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity63

Established project with proven stability

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

Recently: every ~69 days

Total

7

Last Release

4161d ago

Major Versions

1.1.0 → 2.0.02014-05-24

PHP version history (2 changes)1.0.0PHP &gt;=5.5.9

1.1.0PHP &gt;=5.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/78b157e833b14bfc790633c9f715d1c433cefbaff4987199a33d6319ceb5a28e?d=identicon)[Seer](/maintainers/Seer)

---

Top Contributors

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

---

Tags

dic

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/strident-phimple/health.svg)

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

###  Alternatives

[respect/config

A powerful, small, deadly simple configurator and dependency injection container made to be easy.

9911.4k1](/packages/respect-config)

PHPackages © 2026

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