Download the PHP package claraleigh/gpt-helper-for-laravel without Composer
On this page you can find all versions of the php package claraleigh/gpt-helper-for-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download claraleigh/gpt-helper-for-laravel
More information about claraleigh/gpt-helper-for-laravel
Files in claraleigh/gpt-helper-for-laravel
Package gpt-helper-for-laravel
Short Description A Laravel package that generates templates using ChatGPT
License MIT
Informations about the package 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
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
You can install the package via composer:
The package will automatically register itself.
Configuration
You can publish the config file with:
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
You can publish the language files with:
This will create a resources/lang/vendor/gpt-helper directory, where you can store your language files.
Usage
Try to predict the contents of a file, with context and a prompt
Auto generate files during creation
For example, in your custom command:
This will create a Books model in your app directory, and the contents of the file will be modified using ChatGPT.
Available Templates
The following templates are available:
- Model
- Controller
- ... more coming soon
Available Settings
The following GPT settings are available:
- model
- max_tokens
- temperature
- n
- stop
Testing
License
I am considering changing this license, open a issue if you have any suggestions.
The MIT License (MIT). Please see License File for more information.
Credits
All versions of gpt-helper-for-laravel with dependencies
guzzlehttp/guzzle Version ^7.0.1
illuminate/filesystem Version *
illuminate/support Version ^9.0|^10.0
illuminate/translation Version ^9.0|^10.0
nikic/php-parser Version ^4.15
openai-php/laravel Version ^0.4.0
phpdocumentor/reflection-docblock Version ^5.3
symfony/console Version ^6.2