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

ActiveLibrary

dhii/factory-base
=================

Base functionality for factories.

v0.1-alpha3(7y ago)03.9k↑361.5%[1 issues](https://github.com/Dhii/factory-base/issues)MITPHPPHP ^5.4 | ^7.0

Since Mar 21Pushed 7y ago3 watchersCompare

[ Source](https://github.com/Dhii/factory-base)[ Packagist](https://packagist.org/packages/dhii/factory-base)[ RSS](/packages/dhii-factory-base/feed)WikiDiscussions develop Synced today

READMEChangelog (3)Dependencies (17)Versions (5)Used By (0)

Dhii Team - Factory Base
========================

[](#dhii-team---factory-base)

[![Build Status](https://camo.githubusercontent.com/5ee16f02d334cc32089c1f7348bbac49e38bd839e73df6b673ec45026a768b4d/68747470733a2f2f7472617669732d63692e6f72672f446869692f666163746f72792d626173652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Dhii/factory-base)[![Code Climate](https://camo.githubusercontent.com/62095140138a1718ddf20bc04093f81bbc0abb133bdbfcd3a78573ca28e2ed6d/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f446869692f666163746f72792d626173652f6261646765732f6770612e737667)](https://codeclimate.com/github/Dhii/factory-base)[![Test Coverage](https://camo.githubusercontent.com/0beec837bb81da79cd5f4fa0707f61f83c277e1ef6dbc31edaf9489743b76683/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f446869692f666163746f72792d626173652f6261646765732f636f7665726167652e737667)](https://codeclimate.com/github/Dhii/factory-base/coverage)[![Latest Stable Version](https://camo.githubusercontent.com/25856c86ca4bb0fa5053166682a7c0723a95ddc276e02012a5f142c6edde07ff/68747470733a2f2f706f7365722e707567782e6f72672f646869692f666163746f72792d626173652f76657273696f6e)](https://packagist.org/packages/dhii/factory-base)[![This package complies with Dhii standards](https://camo.githubusercontent.com/44bbe8c7678c1784cfc53cabce5d3e32fc22a840453c5ed9c08601522fe7c213/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f446869692d436f6d706c69616e742d677265656e2e7376673f7374796c653d666c61742d737175617265)](https://github.com/Dhii/dhii)

Details
-------

[](#details)

Base functionality for making concrete factories with ease.

### Classes

[](#classes)

- [`AbstractBaseCallbackFactory`](src/AbstractBaseCallbackFactory.php) - Allows easy creation of factories that use a callback to create new instances.

###  Health Score

26

—

LowBetter than 46% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 76.9% 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 ~9 days

Total

3

Last Release

2905d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1894e91b32c9f80d8f30a42d360af6983a507f1cf2c621b7c9a0a0de14e011c5?d=identicon)[XedinUnknown](/maintainers/XedinUnknown)

![](https://www.gravatar.com/avatar/3a5e9c220209499fbe84cad3f5c6aac842e76bd9bf498445e0a317b94f461903?d=identicon)[mecha](/maintainers/mecha)

---

Top Contributors

[![mecha](https://avatars.githubusercontent.com/u/5425482?v=4)](https://github.com/mecha "mecha (30 commits)")[![XedinUnknown](https://avatars.githubusercontent.com/u/1428973?v=4)](https://github.com/XedinUnknown "XedinUnknown (9 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

PHPackages © 2026

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