PHPackages                             micro-module/unit-test-generator - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. micro-module/unit-test-generator

ActiveLibrary[Testing &amp; Quality](/categories/testing)

micro-module/unit-test-generator
================================

POC for unit test generator

v0.6.8(2y ago)12.0k1proprietaryPHPPHP ^7.4 || ^8.0CI failing

Since Dec 7Pushed 2y ago1 watchersCompare

[ Source](https://github.com/temafey/unit-test-generator)[ Packagist](https://packagist.org/packages/micro-module/unit-test-generator)[ RSS](/packages/micro-module-unit-test-generator/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (10)Dependencies (12)Versions (11)Used By (1)

Unit test generator
===================

[](#unit-test-generator)

Proof-of-concept component providing unit test generator.

Documentation
-------------

[](#documentation)

This project can generate or single unit for one class or for all project with all needed mocks.

Getting started
---------------

[](#getting-started)

- For example if you want generate unit test for one class use following code:

    `$testGenerator = new MicroModule\UnitTestGenerator\Service\TestClass();`
    `$testGenerator->generate(FooService::class);`
- For generate tests and mocks for all project use:

    `$testGenerator = new MicroModule\UnitTestGenerator\Service\TestProject(realpath('src'), ['Migrations', 'Presentation', 'Exception']);``$testGenerator->generate();`

    second argument is array of excluded folders

License
-------

[](#license)

This project is licensed under the MIT License - see the LICENSE file for details

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity55

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

Every ~106 days

Recently: every ~204 days

Total

10

Last Release

1066d ago

PHP version history (2 changes)v0.5.0PHP ^7.4

v0.6.1PHP ^7.4 || ^8.0

### Community

Maintainers

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

---

Top Contributors

[![temafey](https://avatars.githubusercontent.com/u/981101?v=4)](https://github.com/temafey "temafey (9 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Psalm

Code StyleECS

Type Coverage Yes

### Embed Badge

![Health badge](/badges/micro-module-unit-test-generator/health.svg)

```
[![Health](https://phpackages.com/badges/micro-module-unit-test-generator/health.svg)](https://phpackages.com/packages/micro-module-unit-test-generator)
```

###  Alternatives

[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k41.3M38.7k](/packages/orchestra-testbench)[zenstruck/foundry

A model factory library for creating expressive, auto-completable, on-demand dev/test fixtures with Symfony and Doctrine.

79513.1M132](/packages/zenstruck-foundry)[orchestra/workbench

Workbench Companion for Laravel Packages Development

8219.1M69](/packages/orchestra-workbench)[vierge-noire/cakephp-fixture-factories

CakePHP Dynamic Fixtures

84935.4k12](/packages/vierge-noire-cakephp-fixture-factories)[jonpurvis/faker-stripe

Faker provider for generating fake Stripe IDs

8769.4k](/packages/jonpurvis-faker-stripe)[directorytree/dummy

438.9k](/packages/directorytree-dummy)

PHPackages © 2026

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