PHPackages                             claraleigh/gpt-helper-for-laravel - 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. claraleigh/gpt-helper-for-laravel

ActiveLibrary

claraleigh/gpt-helper-for-laravel
=================================

A Laravel package that generates templates using ChatGPT

0.2.1(3y ago)52.1kMITPHPPHP ^8.0

Since Mar 21Pushed 2y ago2 watchersCompare

[ Source](https://github.com/ClaraLeigh/gpt-helper-for-laravel)[ Packagist](https://packagist.org/packages/claraleigh/gpt-helper-for-laravel)[ RSS](/packages/claraleigh-gpt-helper-for-laravel/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (9)Versions (4)Used By (0)

GPT Helper for Laravel
======================

[](#gpt-helper-for-laravel)

---

**Please Note:** This is a very early concept project. At this stage it is very limited.

---

Project Goal
------------

[](#project-goal)

The goal of this project is to create open source versions of AI tools for use in PHP applications. At this stage it can predict files that you either give it, or when using the make:xxx command namespace.

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

[](#installation)

You can install the package via composer:

```
composer require ClaraLeigh/gpt-helper-for-laravel
```

The package will automatically register itself.

Configuration
-------------

[](#configuration)

You can publish the config file with:

```
php artisan vendor:publish --provider="GptHelperForLaravel\GptServiceProvider" --tag="config"
```

This will create a gpt-helper.php config file in your config directory. You can set your ChatGPT API key, model, GPT settings, and Domain-Driven Design starting directory in the configuration file.

Publish Language Files
----------------------

[](#publish-language-files)

You can publish the language files with:

```
php artisan vendor:publish --provider="GptHelperForLaravel\GptServiceProvider" --tag="lang"
```

This will create a resources/lang/vendor/gpt-helper directory, where you can store your language files.

Usage
-----

[](#usage)

### Try to predict the contents of a file, with context and a prompt

[](#try-to-predict-the-contents-of-a-file-with-context-and-a-prompt)

```
php artisan gpt:predict
 {source : The file we wish to predict}
 {--prompt= : Add additonal text to give GPT context}
 {--files= : A comma separated list of classnames/files to use as context}
 {--summarizedFiles= : Same as files, but use a summary of instead to reduce the query}
```

### Auto generate files during creation

[](#auto-generate-files-during-creation)

For example, in your custom command:

```
php artisan make:model Books --prompt="This is a books model, with authors, genre's, publication dates and a relevant library"
```

This will create a Books model in your app directory, and the contents of the file will be modified using ChatGPT.

Available Templates
-------------------

[](#available-templates)

The following templates are available:

- Model
- Controller
- ... more coming soon

Available Settings
------------------

[](#available-settings)

The following GPT settings are available:

- model
- max\_tokens
- temperature
- n
- stop

Testing
-------

[](#testing)

```
composer test
```

License
-------

[](#license)

I am considering changing this license, open a issue if you have any suggestions.

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

Credits
-------

[](#credits)

- [ClaraLeigh](https://github.com/ClaraLeigh)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity42

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

Every ~24 days

Total

3

Last Release

1100d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/751f5d923801c6d6a4cfbee2dd6ddb4d26c7849b9b1ae032467d579fd56070ed?d=identicon)[clara\_leigh](/maintainers/clara_leigh)

---

Top Contributors

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

---

Tags

gptlaravellaraveltemplatesgpt

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/claraleigh-gpt-helper-for-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/claraleigh-gpt-helper-for-laravel/health.svg)](https://phpackages.com/packages/claraleigh-gpt-helper-for-laravel)
```

###  Alternatives

[laravel/ui

Laravel UI utilities and presets.

2.7k134.9M601](/packages/laravel-ui)[laravel/breeze

Minimal Laravel authentication scaffolding with Blade and Tailwind.

3.0k31.3M148](/packages/laravel-breeze)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M259](/packages/laravel-dusk)[laravel/vapor-cli

The Laravel Vapor CLI

31310.7M8](/packages/laravel-vapor-cli)[laravel/envoy

Elegant SSH tasks for PHP.

1.6k5.5M18](/packages/laravel-envoy)[laravel-zero/framework

The Laravel Zero Framework.

3371.4M369](/packages/laravel-zero-framework)

PHPackages © 2026

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