PHPackages                             sofa/laravel-test-generator - 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. sofa/laravel-test-generator

ActiveLibrary

sofa/laravel-test-generator
===========================

Don't write boilerplate for your feature tests in a Laravel project

0.1.0(5y ago)1273MITPHPPHP ^7.4

Since Jul 31Pushed 5y ago2 watchersCompare

[ Source](https://github.com/jarektkaczyk/laravel-test-generator)[ Packagist](https://packagist.org/packages/sofa/laravel-test-generator)[ Docs](https://github.com/jarektkaczyk/laravel-test-generator)[ Fund](https://softonsofa.com)[ GitHub Sponsors](https://github.com/jarektkaczyk)[ RSS](/packages/sofa-laravel-test-generator/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (4)Versions (2)Used By (0)

Laravel feature test generator
==============================

[](#laravel-feature-test-generator)

[![Latest Version on Packagist](https://camo.githubusercontent.com/4a7e3d46cb687cddcf4e7a3a910ca3b59b73848c4668fe1a127687eb9e9a032d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f736f66612f6c61726176656c2d746573742d67656e657261746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jarektkaczyk/laravel-test-generator)[![GitHub Tests Action Status](https://github.com/jarektkaczyk/laravel-test-generator/workflows/Tests/badge.svg)](https://github.com/jarektkaczyk/laravel-test-generator/actions?query=workflow%3Atests+branch%3Amaster)[![Total Downloads](https://camo.githubusercontent.com/71fb24f97fe810194f05644deb21c9d02236b3b434c79b0212b7ed20f501f172/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f736f66612f6c61726176656c2d746573742d67656e657261746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jarektkaczyk/laravel-test-generator)

Don't write boilerplate for your feature tests! This package scans all the routes in your Laravel app and generates skeleton for testing them.

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

[](#installation)

You can install the package via composer:

```
composer require jarektkaczyk/package-laravel-test-generator-laravel
```

You can publish the config file with and customize it afterwards in `config/test_generator.php`:

```
php artisan vendor:publish --provider="Sofa\LaravelTestGenerator\LaravelTestGeneratorServiceProvider" --tag="config"
```

Usage
-----

[](#usage)

```
php artisan generate:feature-tests
```

Roadmap
-------

[](#roadmap)

- support for PHPUnit driver
    - generate new test classes
    - bare happy path case
    - bare failing path case
    - parse route model binding and build setup for tests accordingly
    - (OPTIONAL) parse requests and build setup for tests accordingly - might be too complex in many cases
    - (OPTIONAL) update existing test classes with new methods (not trivial with `nette/php-generator`, find better way?)
- support for different drivers
- (OPTIONAL) other drivers

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

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

[](#contributing)

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

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Jarek Tkaczyk](https://github.com/jarektkaczyk)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

24

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

2060d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/34d383bf50d6c73fc747d89a5efacd41ccecc9695aec04148a7c04fc00ef26e7?d=identicon)[jarektkaczyk](/maintainers/jarektkaczyk)

---

Top Contributors

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

---

Tags

laravel-test-generator

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/sofa-laravel-test-generator/health.svg)

```
[![Health](https://phpackages.com/badges/sofa-laravel-test-generator/health.svg)](https://phpackages.com/packages/sofa-laravel-test-generator)
```

###  Alternatives

[barryvdh/laravel-debugbar

PHP Debugbar integration for Laravel

19.1k121.6M538](/packages/barryvdh-laravel-debugbar)[livewire/livewire

A front-end framework for Laravel.

23.5k71.7M1.5k](/packages/livewire-livewire)[laravel/cashier

Laravel Cashier provides an expressive, fluent interface to Stripe's subscription billing services.

2.5k24.8M91](/packages/laravel-cashier)[laravel/boost

Laravel Boost accelerates AI-assisted development by providing the essential context and structure that AI needs to generate high-quality, Laravel-specific code.

3.3k7.8M163](/packages/laravel-boost)[nette/di

💎 Nette Dependency Injection Container: Flexible, compiled and full-featured DIC with perfectly usable autowiring and support for all new PHP features.

92140.1M1.3k](/packages/nette-di)[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k11.3M80](/packages/laravel-pulse)

PHPackages © 2026

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