As a Laravel developer, I live in the command line.
I noticed that I have trouble remembering the exact syntax for commands, so I waste time looking up the same stuff...
So I made Speedrun – a package that turns ordinary sentences into Laravel commands. You can write like a human and GPT will figure out the right command for artisan, composer, and querying the database.
In other words...
sr install debugbar
composer require barryvdh/laravel-debugbar
composer require iambateman/speedrun
SPEEDRUN_OPENAI_API_KEY in .env
php artisan speedrun:demo
sr instead of
php artisan speedrun, add
alias sr="php artisan speedrun" to your .zshrc file.
The system is extremely flexible – it can understand almost any artisan command, composer package, or database query. Below are just a few ideas of the many ways you could use Speedrun.
sr install laravel excel sr install filament
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
sr when did the newest user sign up sr how many articles are attached to city 2
All of these will determine the command you're trying to execute and double check before running it.
Speedrun knows about your app's custom models and commands, so it automatically knows a shocking amount about your app without needing any configuration. It's honestly pretty uncanny.
Thanks for checking out the package, and I hope it works as well for you as it has for me!
Trigger database queries by starting with one of:
find, query, who, what, when, where, why, or
Similarly, install Composer packages with:
install, require, composer.
Any other starting word will trigger a `php artisan` command.
findproduces better results than
sr "query city->articles()"
sr "query City::find(2) how many articles".
app:in order for Speedrun to know about them.