PHPackages                             wasinpwg/openai-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. wasinpwg/openai-test-generator

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

wasinpwg/openai-test-generator
==============================

This is my package openai-test-generator

v0.1.0(2y ago)0475[2 PRs](https://github.com/Plong-Wasin/openai-test-generator/pulls)MITPHPPHP ^8.1

Since Jul 3Pushed 2y ago1 watchersCompare

[ Source](https://github.com/Plong-Wasin/openai-test-generator)[ Packagist](https://packagist.org/packages/wasinpwg/openai-test-generator)[ Docs](https://github.com/wasinpwg/openai-test-generator)[ RSS](/packages/wasinpwg-openai-test-generator/feed)WikiDiscussions main Synced 1mo ago

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

This is my package openai-test-generator
========================================

[](#this-is-my-package-openai-test-generator)

[![Latest Version on Packagist](https://camo.githubusercontent.com/2027f449a30c51b8adc54356cf96e0509c35dbe7772599e000a27f0030d91ba7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f776173696e7077672f6f70656e61692d746573742d67656e657261746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/wasinpwg/openai-test-generator)[![GitHub Tests Action Status](https://camo.githubusercontent.com/c4588be8be53477e4577bde2021b147ba682317ee7e82bf56551b168d0047392/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f706c6f6e672d776173696e2f6f70656e61692d746573742d67656e657261746f722f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/plong-wasin/openai-test-generator/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/9203969f37d768a8f568b22d4bce1419ebf68dbbaca23acac6bb523c5b4d8942/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f706c6f6e672d776173696e2f6f70656e61692d746573742d67656e657261746f722f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/plong-wasin/openai-test-generator/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/1c41ddf341313cbc62ec131b731b4b7d92c1b7506a666236c0f40f4a8091fd14/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f776173696e7077672f6f70656e61692d746573742d67656e657261746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/wasinpwg/openai-test-generator)

This Laravel package allows you to generate automated tests for your application using OpenAI, a powerful language model. With this package, you can quickly create test cases for your Laravel codebase, saving you time and effort in writing tests manually.

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

[](#installation)

You can install the package via composer:

```
composer require wasinpwg/openai-test-generator --dev
```

Next publish the config file with:

```
php artisan vendor:publish --provider="OpenAI\Laravel\ServiceProvider"
php artisan vendor:publish --tag="openai-test-generator-config"
```

Set environment variable `OPENAI_API_KEY` in `.env` file.

```
OPENAI_API_KEY=sk-xxxxxx
```

Usage
-----

[](#usage)

```
php artisan openai:generate-test --class="App\Http\Controller\UserController" --class="App\Http\Controller\PostController"
```

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 Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Wasin Phungwigrai](https://github.com/Plong-Wasin)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 85.7% 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

1043d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/40d58403f9a1e2f99cbdd3f255b02970561d7a81ce6ea4b2006c73d62c17c73c?d=identicon)[Plong-Wasin](/maintainers/Plong-Wasin)

---

Top Contributors

[![Plong-Wasin](https://avatars.githubusercontent.com/u/72617740?v=4)](https://github.com/Plong-Wasin "Plong-Wasin (24 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (2 commits)")

---

Tags

laravel-packagelaravelwasinpwgopenai-test-generator

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/wasinpwg-openai-test-generator/health.svg)

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

###  Alternatives

[spatie/laravel-data

Create unified resources and data transfer objects

1.7k28.9M627](/packages/spatie-laravel-data)[spatie/laravel-livewire-wizard

Build wizards using Livewire

4061.0M4](/packages/spatie-laravel-livewire-wizard)[hirethunk/verbs

An event sourcing package that feels nice.

513162.9k6](/packages/hirethunk-verbs)[worksome/exchange

Check Exchange Rates for any currency in Laravel.

123544.7k](/packages/worksome-exchange)[ralphjsmit/livewire-urls

Get the previous and current url in Livewire.

82270.3k4](/packages/ralphjsmit-livewire-urls)[hydrat/filament-table-layout-toggle

Filament plugin adding a toggle button to tables, allowing user to switch between Grid and Table layouts.

6292.3k1](/packages/hydrat-filament-table-layout-toggle)

PHPackages © 2026

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