PHPackages                             phpunitgen/core - 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. phpunitgen/core

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

phpunitgen/core
===============

The PhpUnitGen core features for tests generation.

4.1.0(2y ago)30220.5k↓56.4%5[1 issues](https://github.com/paul-thebaud/phpunitgen-core/issues)4MITPHPPHP ~8.1.0 || ~8.2.0 || ~8.3.0

Since Sep 6Pushed 2y ago2 watchersCompare

[ Source](https://github.com/paul-thebaud/phpunitgen-core)[ Packagist](https://packagist.org/packages/phpunitgen/core)[ RSS](/packages/phpunitgen-core/feed)WikiDiscussions main Synced 3d ago

READMEChangelog (10)Dependencies (7)Versions (34)Used By (4)

[![PhpUnitGen](https://raw.githubusercontent.com/paul-thebaud/phpunitgen-webapp/main/resources/svg/logo.svg?sanitize=true)](https://raw.githubusercontent.com/paul-thebaud/phpunitgen-webapp/main/resources/svg/logo.svg?sanitize=true)

[![Total Downloads](https://camo.githubusercontent.com/ea3c848b98afcd9728cb820a0b95dfb180fcba829932d6b5546108285194dc4b/68747470733a2f2f706f7365722e707567782e6f72672f706870756e697467656e2f636f72652f642f746f74616c2e737667)](https://packagist.org/packages/phpunitgen/core)[![Latest Stable Version](https://camo.githubusercontent.com/ee2bd4090af3274e7a99eed06c017c995b3bfdfa11286ae3dd95e5d7c00c189d/68747470733a2f2f706f7365722e707567782e6f72672f706870756e697467656e2f636f72652f762f737461626c652e737667)](https://packagist.org/packages/phpunitgen/core)[![Build Status](https://github.com/paul-thebaud/phpunitgen-core/actions/workflows/main.yml/badge.svg)](https://github.com/paul-thebaud/phpunitgen-core/actions/workflows/main.yml)[![StyleCI](https://camo.githubusercontent.com/3f328e7d8d7c76f82a3174e370069d8252576f931065d5feda78af57365d2924/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3139303234363539302f736869656c643f6272616e63683d6d61696e267374796c653d666c6174)](https://github.styleci.io/repos/190246590)[![Quality Gate Status](https://camo.githubusercontent.com/f1d7577aa27ba987364d8bc49a0b85b579501cdccb4cb9ad966feb1e1dbb7ddf/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d7061756c2d746865626175645f706870756e697467656e2d636f7265266d65747269633d616c6572745f737461747573)](https://sonarcloud.io/dashboard?id=paul-thebaud_phpunitgen-core)[![Coverage](https://camo.githubusercontent.com/12c4835e58427a7fbc5e864dc1eaf1520725ed44da940afcc6ebfcfb1219f07f/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d7061756c2d746865626175645f706870756e697467656e2d636f7265266d65747269633d636f766572616765)](https://sonarcloud.io/dashboard?id=paul-thebaud_phpunitgen-core)

⚠️ PhpUnitGen end of life
-------------------------

[](#warning-phpunitgen-end-of-life)

After 7 years of existence, PhpUnitGen is not maintained anymore. [Read the post](https://github.com/paul-thebaud/phpunitgen-core/issues/32)

Installation
------------

[](#installation)

The CLI tool can be installed using:

```
composer require --dev phpunitgen/console
```

Detailed information and webapp version are available at .

About PhpUnitGen
----------------

[](#about-phpunitgen)

> **Note:** this repository contains the core code of PhpUnitGen. If you want to use the tool on your browser, you can go on the [webapp](https://phpunitgen.io). If you want to use the tool on your console, you can install the [command line package](https://github.com/paul-thebaud/phpunitgen-console).

PhpUnitGen is an online and command line tool to generate your unit tests' skeletons on your projects.

- [How does it work?](https://phpunitgen.io/docs#/en/how-does-it-work)
- [Configuration](https://phpunitgen.io/docs#/en/configuration)
- [Web application](https://phpunitgen.io/docs#/en/webapp)
- [Command line](https://phpunitgen.io/docs#/en/command-line)
- [Advanced usage](https://phpunitgen.io/docs#/en/advanced-usage)

### Key features

[](#key-features)

- Generates tests skeletons for your PHP classes
- Binds with Laravel "make" command
- Generates class instantiation using dummy parameters or mocks
- Adapts to PHPUnit or Mockery mocks generation

PhpUnitGen is not meant to generate your tests content but only the skeleton (except for getters/setters).

This is because inspecting your code to generate the appropriate test is way too complex, and might result in missing some of the code's features or marking them as "passed unit test" even if it contains errors.

Roadmap
-------

[](#roadmap)

You can track the tasks we plan to do on our [Taiga.io project](https://tree.taiga.io/project/paul-thebaud-phpunitgen/kanban).

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for more details.

Informal discussion regarding bugs, new features, and implementation of existing features takes place in the [Github issue page of Core repository](https://github.com/paul-thebaud/phpunitgen-core/issues).

Credits
-------

[](#credits)

- [Paul Thébaud](https://github/paul-thebaud)
- [Killian Hascoët](https://github.com/KillianH)
- [Charles Corbel](https://dribbble.com/CorbelC)
- [All Contributors](https://github.com/paul-thebaud/phpunitgen-core/graphs/contributors)

License
-------

[](#license)

PhpUnitGen is an open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).

###  Health Score

46

—

FairBetter than 92% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity43

Moderate usage in the ecosystem

Community19

Small or concentrated contributor base

Maturity85

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 96.7% 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 ~49 days

Recently: every ~169 days

Total

33

Last Release

921d ago

Major Versions

1.1.3 → 2.0.0-alpha12021-08-26

1.2.0 → 2.0.0-alpha52021-12-23

2.x-dev → 3.0.02022-04-28

3.1.0 → 4.0.02023-12-17

PHP version history (9 changes)1.0.0-alpha1PHP ~7.2

1.0.0-alpha3PHP ^7.2

1.1.0PHP ^7.1

2.0.0-alpha1PHP ^7.1|^8.0

2.0.0-alpha3PHP ^8.0

2.0.0-alpha4PHP ~8.0.12 || ~8.1.0

3.1.0PHP ~8.0.12 || ~8.1.0 || ~8.2.0

4.0.0PHP ~8.1.0 || ~8.2.0

4.1.0PHP ~8.1.0 || ~8.2.0 || ~8.3.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/18483833?v=4)[Paul Thébaud](/maintainers/paul-thebaud)[@paul-thebaud](https://github.com/paul-thebaud)

---

Top Contributors

[![paul-thebaud](https://avatars.githubusercontent.com/u/18483833?v=4)](https://github.com/paul-thebaud "paul-thebaud (327 commits)")[![KillianH](https://avatars.githubusercontent.com/u/8064210?v=4)](https://github.com/KillianH "KillianH (10 commits)")[![scheb](https://avatars.githubusercontent.com/u/1259952?v=4)](https://github.com/scheb "scheb (1 commits)")

---

Tags

testgeneratorgeneration

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[nelmio/api-doc-bundle

Generates documentation for your REST API from attributes

2.4k67.4M263](/packages/nelmio-api-doc-bundle)[infyomlabs/laravel-generator

InfyOm Laravel Generator

3.8k2.4M13](/packages/infyomlabs-laravel-generator)[typo3/cms

TYPO3 CMS is a free open source Content Management Framework initially created by Kasper Skaarhoj and licensed under GNU/GPL.

1.2k1.9M122](/packages/typo3-cms)[typo3/cms-extbase

TYPO3 CMS Extbase - Extension framework to create TYPO3 frontend plugins and TYPO3 backend modules.

1813.1M814](/packages/typo3-cms-extbase)[niklongstone/regex-reverse

Regular Expression reverter, generates a string from a provided regular expression

105161.8k5](/packages/niklongstone-regex-reverse)[leanphp/behat-code-coverage

Generate Code Coverage reports for Behat tests

51361.4k2](/packages/leanphp-behat-code-coverage)

PHPackages © 2026

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