iambateman / speedrun
一个由 GPT 驱动的 Laravel 应用工具。
0.0.8
2023-07-26 03:59 UTC
Requires
- php: ^8.1
- doctrine/dbal: ^3.6
- illuminate/contracts: ^9.0|^10.0
- spatie/laravel-package-tools: ^1.14.0
Requires (Dev)
- laravel/pint: ^1.0
- nunomaduro/collision: ^7.9
- orchestra/testbench: ^8.0
- pestphp/pest: ^2.0
- pestphp/pest-plugin-arch: ^2.0
- pestphp/pest-plugin-laravel: ^2.0
README
与其手动输入 php artisan make:model Keyword -m
,使用 Speedrun 自动记录语法。只需提出您的要求,我们将使用 GPT 来解决它!
安装
composer require iambateman/speedrun
# Set an OpenAI API Key in your .env SPEEDRUN_OPENAI_API_KEY=sk-...
安装完成后,运行 php artisan speedrun:demo
使用方法
# Speedrun is a fancy Laravel command, so # out of the box, you would write... php artisan speedrun how many articles are there # But if you alias it to `sr`, you get... sr how many articles are there # You can write the worst Eloquent queries ever sr "query family(12)->members get name"
尝试以下示例命令
第一次尝试这些命令时我感到震惊...太疯狂了。
# COMPOSER REQUIRE sr install laravel excel sr install filament # PHP ARTISAN sr make keyword model with migration and factory sr start queue # CUSTOM APP COMMANDS (contextual to your app) sr generate sitemap sr write articles for city 2 # QUERY YOUR DATABASE (contextual, as well) sr when did the newest user sign up sr how many articles are attached to city 2
测试
Tests are coming soon. Don't judge me, I have a six-month old baby.
变更日志
请参阅 CHANGELOG 以获取最近更改的详细信息。
贡献
请参阅 CONTRIBUTING 以获取详细信息。
安全漏洞
请审查 我们的安全策略 了解如何报告安全漏洞。
致谢
- Speedrun: iambateman
- 如果没有 Artisan、Tinker、Composer 和 Laravel 等许多人的出色工作,这一切都不可能实现。感谢您的贡献。
- 所有贡献者
配置
目前配置有限,但您可以根据需要发布
# (Optionally) publish config. php artisan vendor:publish --tag="speedrun-config"
许可证
MIT 许可证 (MIT)。有关更多信息,请参阅 许可证文件。