Laravel Task Runner is a package to write Shell scripts like Blade Components and run them locally or on a remote server. You can install the package via Composer: composer require protonemedia/laravel-task-runner

You may use the Artisan make:task command to create a Task class: php artisan make:task ComposerGlobalUpdate

This allows you to specify the script inline: class ComposerGlobalUpdate extends Task { public function render(): string { return 'composer global update'; }}

Just like Blade Components, the public properties and methods of the Task class are available in the template: class GetFile extends Task { public function __construct(public string $path) { } public function options() { return '-n'; }}
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners