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

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

sanprojects/phpunitgen-core
===========================

The PhpUnitGen core features for tests generation.

1.1.3(4y ago)05MITPHPPHP ^7.1

Since Sep 6Pushed 4y agoCompare

[ Source](https://github.com/sanprojects/phpunitgen-core)[ Packagist](https://packagist.org/packages/sanprojects/phpunitgen-core)[ RSS](/packages/sanprojects-phpunitgen-core/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (6)Versions (23)Used By (0)

[![PhpUnitGen](https://raw.githubusercontent.com/paul-thebaud/phpunitgen-webapp/master/resources/svg/logo.svg?sanitize=true)](https://raw.githubusercontent.com/paul-thebaud/phpunitgen-webapp/master/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/c5b33f6ba588b0bf7658b162b1ba81fa7469f0965b816d023e70ab8567d71200/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3139303234363539302f736869656c643f6272616e63683d6d6173746572267374796c653d666c6174)](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)

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

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 96% 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 ~34 days

Recently: every ~111 days

Total

22

Last Release

1771d ago

Major Versions

1.1.3 → 2.0.0-alpha12021-08-26

PHP version history (4 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

### Community

Maintainers

![](https://www.gravatar.com/avatar/96848e13a893f3d4c72217339b466debf9fd6c363cd79c3b0312ac69d34fe95d?d=identicon)[sanprojects](/maintainers/sanprojects)

---

Top Contributors

[![paul-thebaud](https://avatars.githubusercontent.com/u/18483833?v=4)](https://github.com/paul-thebaud "paul-thebaud (261 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/sanprojects-phpunitgen-core/health.svg)

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

###  Alternatives

[infyomlabs/laravel-generator

InfyOm Laravel Generator

3.8k2.4M13](/packages/infyomlabs-laravel-generator)[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)[trappar/alice-generator

Automatically generates alice fixture based on a set of objects

52185.5k1](/packages/trappar-alice-generator)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1616.4k14](/packages/2lenet-crudit-bundle)[fakerino/fakerino

Faker framework, for generate every kind of fake data for test, database seed, mock responses, other

12314.9k5](/packages/fakerino-fakerino)

PHPackages © 2026

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