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

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

sanprojects/phpunitgen-console
==============================

The PhpUnitGen command line features for tests generation.

1.4.0(4y ago)03MITPHPPHP ^7.1

Since Feb 16Pushed 4y agoCompare

[ Source](https://github.com/sanprojects/phpunitgen-console)[ Packagist](https://packagist.org/packages/sanprojects/phpunitgen-console)[ RSS](/packages/sanprojects-phpunitgen-console/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (11)Versions (17)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/955b441e784e387aa6021ac0e68806fe81cd0459dce3bff3bc3eba31906227da/68747470733a2f2f706f7365722e707567782e6f72672f706870756e697467656e2f636f6e736f6c652f642f746f74616c2e737667)](https://packagist.org/packages/phpunitgen/console)[![Latest Stable Version](https://camo.githubusercontent.com/7ee04a547b187e6bb7487ac0bdf7dfb47e455b50999b12e161e007c517dfb4a9/68747470733a2f2f706f7365722e707567782e6f72672f706870756e697467656e2f636f6e736f6c652f762f737461626c652e737667)](https://packagist.org/packages/phpunitgen/console)[![Build Status](https://github.com/paul-thebaud/phpunitgen-console/actions/workflows/main.yml/badge.svg)](https://github.com/paul-thebaud/phpunitgen-console/actions/workflows/main.yml)[![StyleCI](https://camo.githubusercontent.com/5d642353afacf92840f93aa1fb9656122472ad1211ecc6c1a86d0c81f0b18264/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3139303234363737362f736869656c643f6272616e63683d6d6173746572267374796c653d666c6174)](https://github.styleci.io/repos/190246776)[![Quality Gate Status](https://camo.githubusercontent.com/6170259d4a69139551832c55f06922289d03e24b3b259579d2434196cf81950b/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d7061756c2d746865626175645f706870756e697467656e2d636f6e736f6c65266d65747269633d616c6572745f737461747573)](https://sonarcloud.io/dashboard?id=paul-thebaud_phpunitgen-console)[![Coverage](https://camo.githubusercontent.com/260082375b7f366a4d8269608dd9fa1cda1331f65ef0c8e74a1f54ba9adce4c0/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d7061756c2d746865626175645f706870756e697467656e2d636f6e736f6c65266d65747269633d636f766572616765)](https://sonarcloud.io/dashboard?id=paul-thebaud_phpunitgen-console)

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 console 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 see the core code, you should go on [core package](https://github.com/paul-thebaud/phpunitgen-core).

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

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 98.9% 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 ~38 days

Recently: every ~5 days

Total

16

Last Release

1705d ago

Major Versions

1.3.2 → 2.0.0-alpha12021-08-26

1.4.0 → 2.0.0-alpha32021-09-15

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

1.2.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 (92 commits)")[![dutymess](https://avatars.githubusercontent.com/u/19936104?v=4)](https://github.com/dutymess "dutymess (1 commits)")

---

Tags

testgeneratorgeneration

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[infyomlabs/laravel-generator

InfyOm Laravel Generator

3.8k2.3M13](/packages/infyomlabs-laravel-generator)[php-coveralls/php-coveralls

PHP client library for Coveralls API

51413.7M3.4k](/packages/php-coveralls-php-coveralls)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)[trappar/alice-generator

Automatically generates alice fixture based on a set of objects

52185.4k1](/packages/trappar-alice-generator)[niklongstone/regex-reverse

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

105150.4k4](/packages/niklongstone-regex-reverse)

PHPackages © 2026

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