analogue/factory
A lightweight model factory for Laravel that generates fake Eloquent model instances for testing and seeding, with a fluent API for defining attribute blueprints, sequences, and relationships so you can quickly build realistic test data.
factory() builder and Analogue's EntityManager. The realistic decision is fork-and-own or write in-house, not depend on it — 1 star, 0 dependents, no release since Feb 2018 means no security response, no Laravel 8+ class-based factory support, no PHP 8 support.factory() silently taxes every sprint after the first one.Consider it if:
analogue/orm inside a Laravel application and need factory() support for tests or seeders — and you accept that adopting it means forking it.EntityManager into Laravel's factory Builder contract — the pattern is reusable even if the code isn't.Look elsewhere if:
Factory classes.doctrine/data-fixtures, zenstruck/foundry (Symfony), or plain PHP fixture builders plus database transactions instead.Reading the scores honestly: the 0.135 quality/maintainability score and near-zero adoption confirm this is archival code, not a dependency. The high opportunity score reflects scarcity — almost nothing else bridges Analogue to Laravel factories — not viability. Scarcity in an abandoned niche is a warning, not a market.
For executives (one paragraph): Analogue Factory is a small, free integration shim that lets Laravel's test-data factories work with the Analogue ORM instead of Laravel's default database layer. It is not a product we should adopt: one GitHub star, no downstream users, no release since early 2018, and it predates modern Laravel. Its value to us is as evidence, not as a dependency — it lets us price the "hidden" cost of stepping outside Laravel's default ORM, which is roughly one engineer-sprint of fixture and test tooling we would have to own and maintain forever. Recommendation: stay on Eloquent unless a domain-complexity requirement genuinely forces a data-mapper ORM; if it does, budget that sprint explicitly and build the adapter in-house rather than inheriting abandoned code.
For engineering:
Builder and Analogue's EntityManager; then write a ~hundred-line adapter you control.How can I help you explore Laravel packages today?