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

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

unigen/unigen
=============

UniGen is a unit test generator for PHP. It automatically generates unit tests for your classes

1.0.1(7y ago)2240.6k↓20%[3 issues](https://github.com/unigen/unigen/issues)1MITPHPPHP &gt;=7.0

Since Feb 3Pushed 6y ago2 watchersCompare

[ Source](https://github.com/unigen/unigen)[ Packagist](https://packagist.org/packages/unigen/unigen)[ RSS](/packages/unigen-unigen/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (9)Dependencies (5)Versions (12)Used By (1)

[![Build Status](https://camo.githubusercontent.com/f5e4ec1f03ef4d974e90c7beb0482b4d3390ab66917d4536cd78b304e3229c31/68747470733a2f2f7472617669732d63692e6f72672f756e6967656e2f756e6967656e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/unigen/unigen)[![Code Coverage](https://camo.githubusercontent.com/1b81bed42569a1a07cc189dde9f2c84b0d3fbe3926fc5821589abd9fe64cfb77/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f756e6967656e2f756e6967656e2f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/unigen/unigen/?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/7e4f977c6e90ba5788b8631bb79f13891b0329177be72c63eff2f5d2abf2d04e/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f756e6967656e2f756e6967656e2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/unigen/unigen/?branch=master)[![License: MIT](https://camo.githubusercontent.com/08cef40a9105b6526ca22088bc514fbfdbc9aac1ddbf8d4e6c750e3a88a44dca/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d626c75652e737667)](https://opensource.org/licenses/MIT)[![Minimum PHP Version](https://camo.githubusercontent.com/ed3d5f316ab7046990f8dbe388251ead80e0b003b22814d531ddbfc332a20cf1/687474703a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230372e302d3838393242462e737667)](https://php.net/)

### UniGen

[](#unigen)

UniGen is a unit test generator for PHP. It automatically generates boilerplate for unit tests.

[![Unigen recording](https://raw.githubusercontent.com/unigen/unigen/develop/src/Resources/static/recording.gif)](https://raw.githubusercontent.com/unigen/unigen/develop/src/Resources/static/recording.gif)

### Integrations

[](#integrations)

Symfony bundle [unigen/unigen-bundle](https://github.com/unigen/unigen-bundle)

### Features

[](#features)

- Supports mockery and phpunit mocks
- Configurable test target directory
- Configurable namespace
- Configurable templates
- Configurable test case

### Installation

[](#installation)

`composer require --dev unigen/unigen`

### Documentation

[](#documentation)

- [How to use](src/Resources/doc/1-how-to-use.md)
- [IDE integration](src/Resources/doc/2-integration.md)

### License

[](#license)

This bundle is available under the MIT license.

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity62

Established project with proven stability

 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 ~3 days

Total

10

Last Release

2672d ago

Major Versions

0.2.6 → 1.0.02019-03-01

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/9626312?v=4)[Kamil Kujawa](/maintainers/KamilKujawa)[@KamilKujawa](https://github.com/KamilKujawa)

---

Top Contributors

[![KamilKujawa](https://avatars.githubusercontent.com/u/9626312?v=4)](https://github.com/KamilKujawa "KamilKujawa (29 commits)")

---

Tags

phptestingtoolunittesttestingunitunit testing

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.6k38.2k](/packages/matomo-matomo)[infection/infection

Infection is a Mutation Testing framework for PHP. The mutation adequacy score can be used to measure the effectiveness of a test set in terms of its ability to detect faults.

2.2k28.9M2.3k](/packages/infection-infection)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

21866.0M1.7k](/packages/drupal-core)[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6942.5M406](/packages/drupal-core-recommended)[shopware/storefront

Storefront for Shopware

684.6M228](/packages/shopware-storefront)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M551](/packages/shopware-core)

PHPackages © 2026

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