PHPackages                             kin-jacques/punigen - 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. kin-jacques/punigen

ActiveSymfony-bundle

kin-jacques/punigen
===================

A Symfony MakerBundle extension to automatically generate test files for PHP classes, streamlining the testing process.

11

Since Mar 12Pushed 1y ago1 watchersCompare

[ Source](https://github.com/kin-jacques/punigen)[ Packagist](https://packagist.org/packages/kin-jacques/punigen)[ RSS](/packages/kin-jacques-punigen/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

punigen
=======

[](#punigen)

PHPUnit Test Generator: A Symfony MakerBundle extension to automatically generate test files for all functions of each PHP classes in each folders (namespaces), streamlining the testing process.

Requirements
------------

[](#requirements)

- PHP 8.0 or higher
- Symfony 6.0 or higher
- Symfony MakerBundle

Installation with Composer
--------------------------

[](#installation-with-composer)

`composer require kin-jacques/punigen --dev`

Usage
-----

[](#usage)

PuniGen extends the Symfony MakerBundle to provide commands for automatically generating test files for your PHP classes.

Basic Usage
-----------

[](#basic-usage)

```

# Generate test files for all functions of all classes in the src directory
php bin/console make:test-case

# Generate test files for a specific class
php bin/console make:test-case App\\Service\\ExampleService

# Generate test files for a specific function
php bin/console make:test-case App\\Service\\ExampleService --functions=exampleMethod

```

Feature Roadmap
---------------

[](#feature-roadmap)

- Support for Symfony 7
- Integration with PHPStan/Psalm for more intelligent test generation
- Custom assertions generation based on method return types
- Test data generators for complex types

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

[](#contributing)

Contributions are welcome!
Please feel free to submit a Pull Request.

- Fork the repository
- Create your feature branch (git checkout -b feature/amazing-feature)
- Commit your changes (git commit -m 'Add some amazing feature')
- Push to the branch (git push origin feature/amazing-feature)
- Open a Pull Request

License
-------

[](#license)

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

Author
------

[](#author)

Kinton JACQUES - [Github](https://github.com/kin-jacques)

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity15

Early-stage or recently created project

 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.

### Community

Maintainers

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

---

Top Contributors

[![kin-jacques](https://avatars.githubusercontent.com/u/44848362?v=4)](https://github.com/kin-jacques "kin-jacques (6 commits)")

### Embed Badge

![Health badge](/badges/kin-jacques-punigen/health.svg)

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

PHPackages © 2026

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