PHPackages                             ajay-makwana/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. [Testing &amp; Quality](/categories/testing)
4. /
5. ajay-makwana/laravel-test-generator

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

ajay-makwana/laravel-test-generator
===================================

Laravel package for generating unit test automatically

v0.0.5(5y ago)09MITPHP

Since Jul 31Pushed 4y agoCompare

[ Source](https://github.com/Ajay1432/laravel-test-generator)[ Packagist](https://packagist.org/packages/ajay-makwana/laravel-test-generator)[ RSS](/packages/ajay-makwana-laravel-test-generator/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (1)Versions (7)Used By (0)

Laravel Test Generator
======================

[](#laravel-test-generator)

Auto generate the unit test file for the available routes

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

[](#installation)

The package can easily be installed by running `composer require ajay-makwana/laravel-test-generator` in your project's root folder.

If you are running a version of Laravel &lt; 5.5 also make sure you add `AjayMakwana\LaravelTestGenerator\TestGeneratorServiceProvider::class` to the `providers` array in `config/app.php`.

This will register the artisan command that will be available to you.

Usage
-----

[](#usage)

Generating the test file is easy, simply run `php artisan laravel-test:generate` in your project root. This will write all the test cases into the file based on controller.

If you wish to filter for specific routes only, you can pass a filter attribute using --filter, for example `php artisan laravel-test:generate --filter='/api'`

If you wish to change the directory of creating the test file, you can pass a directory using --dir, for example `php artisan laravel-test:generate --dir='V1'`

If you wish to add the @depends attribute to all the function except the first function for running test cases synchronously, you can pass a sync attribute using --sync, for example `php artisan laravel-test:generate --sync='true'`

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 55.6% 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 ~207 days

Total

5

Last Release

2067d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/120797450?v=4)[Ajay1432](/maintainers/Ajay1432)[@ajay1432](https://github.com/ajay1432)

---

Top Contributors

[![vigneshc91](https://avatars.githubusercontent.com/u/2412864?v=4)](https://github.com/vigneshc91 "vigneshc91 (5 commits)")[![ajay-makwana](https://avatars.githubusercontent.com/u/17492676?v=4)](https://github.com/ajay-makwana "ajay-makwana (3 commits)")[![opiy-org](https://avatars.githubusercontent.com/u/10293975?v=4)](https://github.com/opiy-org "opiy-org (1 commits)")

### Embed Badge

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

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

###  Alternatives

[laracasts/testdummy

Easy test stubs

4671.4M38](/packages/laracasts-testdummy)[sizuhiko/fabricate

PHP data generator for Testing

64636.1k2](/packages/sizuhiko-fabricate)[silverstripe/frameworktest

Aids core and module developers in testing their code against a set of sample data and behaviour.

17315.0k38](/packages/silverstripe-frameworktest)

PHPackages © 2026

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