PHPackages                             jest/jest - 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. jest/jest

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

jest/jest
=========

A simple Dependency Injector for PHP 5.4+

v1.0.0(12y ago)1752MITPHPPHP &gt;=5.4.0

Since Jan 30Pushed 12y ago1 watchersCompare

[ Source](https://github.com/jeffturcotte/jest)[ Packagist](https://packagist.org/packages/jest/jest)[ Docs](https://github.com/jeffturcotte/jest)[ RSS](/packages/jest-jest/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

Jest
====

[](#jest)

A simple dependency injection library

[![Build Status](https://camo.githubusercontent.com/5c5c4b85ec3b57c0439ee27858d9d133a01b84e290c650ef8a519ca43682188b/68747470733a2f2f7472617669732d63692e6f72672f6a656666747572636f7474652f6a6573742e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/jeffturcotte/jest)

Jest looks to find the middle ground between the simplicity offered by tiny service locators like Pimple and the real dependency injection libraries like PHP-DI provide.

Jest uses an API very similar to Pimple and uses type casting and reflection to determine which dependencies need to be injected into the specified class or PHP callable (Closure, function, or method).

Usage:
------

[](#usage)

```
$injector = new Jest\Injector();

// configure your shared dependencies

$injector['Request'] = function() {
	return new Request();
};

$injector['Session'] = function(Request $req) {
	return new Session($req);
};

// invoke a callable with the dependencies

$returnValue = $injector->invoke(function(Request $req, Session $sess) {
	return array($req, $sess);
});

```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

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

4488d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/00725533df5fd021ac93639028725bf46bef78f6d924618a987b9bfd5c32c3eb?d=identicon)[jeffturcotte](/maintainers/jeffturcotte)

---

Top Contributors

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

---

Tags

dependency-injectiondi

### Embed Badge

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

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

###  Alternatives

[level-2/dice

A minimalist Dependency injection container (DIC) for PHP. Please note: 3.0+ is only compatible with PHP 7.0. The 2.0 branch is compatbile with PHP 5.6.

437730.3k17](/packages/level-2-dice)[php-di/invoker

Generic and extensible callable invoker

26857.8M56](/packages/php-di-invoker)[hyperf/di

A DI for Hyperf.

182.8M594](/packages/hyperf-di)[x-wp/di

The dependency injection container for WordPress

301.1k10](/packages/x-wp-di)

PHPackages © 2026

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