PHPackages                             watoki/factory - 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. watoki/factory

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

watoki/factory
==============

A simple dependency injection container for PHP

v1.0(10y ago)47.8k4[2 PRs](https://github.com/watoki/factory/pulls)7MITPHPPHP &gt;=5.3.8

Since Nov 6Pushed 10y ago1 watchersCompare

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

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

factory [![Build Status](https://camo.githubusercontent.com/817ccaefbfd062564ce6056a27b9ca108af2005bbc5df3ccda9988490646d6e5/68747470733a2f2f7472617669732d63692e6f72672f7761746f6b692f666163746f72792e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/watoki/factory)
=================================================================================================================================================================================================================================================================================

[](#factory-)

*factory* is a simple dependency injection container for PHP. It supports singeltons and injection through constructor, properties and property annotations. Check out the [Test Suite](https://github.com/watoki/factory/tree/master/spec/watoki/factory) for a detailed documentation.

###  Health Score

35

—

LowBetter than 79% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 97.6% 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 ~166 days

Recently: every ~129 days

Total

6

Last Release

3734d ago

Major Versions

0.5 → v1.02016-02-17

### Community

Maintainers

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

---

Top Contributors

[![rtens](https://avatars.githubusercontent.com/u/1468866?v=4)](https://github.com/rtens "rtens (83 commits)")[![jwoschitz](https://avatars.githubusercontent.com/u/856556?v=4)](https://github.com/jwoschitz "jwoschitz (2 commits)")

---

Tags

dependency-injectionwatoki

### Embed Badge

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

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

###  Alternatives

[php-di/invoker

Generic and extensible callable invoker

26857.8M56](/packages/php-di-invoker)[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.3k16](/packages/level-2-dice)[respect/config

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

10211.4k1](/packages/respect-config)[arokettu/phpstorm-metadata-export

Export PhpStorm Advanced Metadata from DI containers

1234.0k1](/packages/arokettu-phpstorm-metadata-export)[x-wp/di

The dependency injection container for WordPress

301.1k10](/packages/x-wp-di)[michaels/data-manager

Simple data manager for nested data, dot notation array access, extendability, and container interoperability.

121.9k2](/packages/michaels-data-manager)

PHPackages © 2026

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