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

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners