Download the PHP package beyondcode/laravel-ask-database without Composer
On this page you can find all versions of the php package beyondcode/laravel-ask-database. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download beyondcode/laravel-ask-database
More information about beyondcode/laravel-ask-database
Files in beyondcode/laravel-ask-database
Package laravel-ask-database
Short Description Use natural language and AI to query your database from Laravel
License MIT
Homepage https://github.com/beyondcode/laravel-ask-database
Informations about the package laravel-ask-database
Laravel Ask DB: Natural Language Database Query Builder
[!NOTE]
This package is meant to be a learning resource for prompt engineering and how to achieve AI-generated query generation with PHP/Laravel. You should probably not use this in production
Ask DB allows you to use OpenAI's GPT-3 to build natural language database queries.
Installation
You can install the package via composer:
You can publish the config file with:
This is the contents of the published config file:
Usage
First, you need to configure your OpenAI API key in your .env
file:
Then, you can use the DB::ask()
method to ask the database:
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Credits
- Marcel Pociot
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-ask-database with dependencies
doctrine/dbal Version ^3.6
illuminate/contracts Version ^9.0|^10.0
openai-php/laravel Version ^0.3.1
spatie/laravel-package-tools Version ^1.14.0
spatie/once Version ^3.1