Run console commands over HTTP connection for Laravel applications.
outl1ne/laravel-console-over-http is a Laravel package for run console commands over http connection for laravel applications..
It currently has 2 GitHub stars and 16.311 downloads on Packagist (latest version 2.0.4).
Install it with composer require outl1ne/laravel-console-over-http.
Discover more Laravel packages by outl1ne
or browse all Laravel packages to compare alternatives.
Last updated
Run console commands over HTTP connection for Laravel applications.
Creates a route with a path /console that runs the command from HTTP parameters in a console.
In routes/web.php add a line:
ConsoleOverHttp::endpoint();
Configure an environment variable CONSOLE_OVER_HTTP_TOKEN to secure the endpoint.
Visit the route in your app, e.g. http://localhost:4000/console?command=php%20artisan%20inspire&token=your-token
ConsoleOverHttp::endpoint()->insecure();
Or set the environment variable CONSOLE_OVER_HTTP_INSECURE=true.
ConsoleOverHttp::endpoint()->auth(function () {
return \Auth::check();
});
Install the package in a Laravel project via Composer:
composer require outl1ne/laravel-console-over-http
Laravel Console over HTTP is open-sourced software licensed under the MIT license.