naif/chatgpt-seeder
Composer 安装命令:
composer require naif/chatgpt-seeder
包简介
A Laravel Nova 4 powerful tool that leverages the capabilities of ChatGPT to automate the generation of realistic and meaningful data for your database seeding need.
关键字:
README 文档
README
A powerful tool that leverages the capabilities of ChatGPT to automate the generation of realistic and meaningful data for your database seeding need.
Features
- Easy data seeding
- Real/fake data options
- Flexible table selection
- Customizable record count
- Detailed column info
- Selective column insertion
- Auto select none nullable columns
- Contextual data description
- Preview data before insertion
- Data regeneration for accuracy
- API rate limit handling using retry count
- Seamless OpenAI API integration
- Customizable configuration
- Display API token usage
- User-friendly interface
- Try catch exception, both backend and frontend
Requirements
- PHP 8.0 or higher
- Nova 4
- OpenAI API Key
Installation
You can install the package into a Laravel app that uses Nova 4 via composer:
composer require naif/chatgpt-seeder
Publish the package's configuration file
php artisan vendor:publish --provider="Naif\ChatgptSeeder\ToolServiceProvider"
Add the below to .env file:
CHATGPT_SEEDER_API_KEY= (OpenAI API Key)
CHATGPT_SEEDER_MAX_TOKENS=1000
CHATGPT_SEEDER_GENERATE_RETRY=3
Usage
Add the tool to NovaServiceProvider.php
public function tools()
{
return [
new ChatgptSeeder()
];
}
Configuration
ChatGPT Seeder's configuration file, located at config/chatgpt-seeder.php
Allows you to set and customize:
- ChatGPT API Key
- Maximum tokens to be used for each request (higher number yields longer data)
- Retry count: Refers to the tool's ability to retry the data request when the returned data is not valid. It will continue retrying until it reaches the maximum retry count, ensuring a valid and accurate result while avoiding too many API requests.
Steps
1- Access ChatGPT Seeder Tool from the Laravel Nova dashboard.
2- Fill in the required information, such as:
- Data type (Real or Fake)
- Table Name
- Number of Records
- Data Required Description
- Select any nullable columns.
3- Click the "Generate" button to initiate the data generation process.
4- Data Preview will show up displaying the first 8 records.
5- Click Proceed to insert data to table, or click on Regenerate again until you are satisfied with the result.
Screenshots
Support:
Bug Tracker:
https://github.com/naifalshaye/chatgpt-seeder/issues
License
The MIT License (MIT). Please see License File for more information.
naif/chatgpt-seeder 适用场景与选型建议
naif/chatgpt-seeder 是一款 基于 Vue 开发的 Composer 扩展包,目前已累计 48 次下载、GitHub Stars 达 9, 最近一次更新时间为 2023 年 06 月 30 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「database」 「nova」 「laravel」 「seeder」 「ai」 「artificial-intelligence」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 naif/chatgpt-seeder 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 naif/chatgpt-seeder 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 naif/chatgpt-seeder 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A Laravel Nova card that shows you your system information.
Dibi is Database Abstraction Library for PHP
A Laravel Nova card.
Store your language lines in the database, yaml or other sources
A package for automatically encrypting and decrypting Eloquent attributes in Laravel 5.5+, based on configuration settings.
A Laravel Nova package for publishable fields
统计信息
- 总下载量: 48
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 9
- 点击次数: 17
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-06-30

