New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

outl1ne/laravel-console-over-http

Run console commands over HTTP connection for Laravel applications.
16,359 2
Install
composer require outl1ne/laravel-console-over-http
Latest Version:2.0.4
Laravel:6 – 11
License:MIT
Last Updated:Apr 26, 2024
Links: GitHub  ·  Packagist
Maintainer: Tarpsvo

Laravel Console over HTTP

Latest Version on Packagist Total Downloads

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.

Usage

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

Example - insecure usage

ConsoleOverHttp::endpoint()->insecure();

Or set the environment variable CONSOLE_OVER_HTTP_INSECURE=true.

Example - custom authentication logic

ConsoleOverHttp::endpoint()->auth(function () {
    return \Auth::check();
});

Installation

Install the package in a Laravel project via Composer:

composer require outl1ne/laravel-console-over-http

Credits

License

Laravel Console over HTTP is open-sourced software licensed under the MIT license.

Related Packages

optimistdigital/laravel-console-over-http

Run console commands over HTTP connection for Laravel applications.

12,591 2
outl1ne/laravel-google-cloud-queues

Manage Google Cloud queues from Laravel app.

11,214 1
hmazter/laravel-schedule-list

Laravel package to add command to list all scheduled artisan commands

442,314 94
darsain/laravel-console

Browser console for Laravel Framework.

57,274 168
teepluss/console

Browser console for Laravel Framework.

51,837 43

Version History

Version Released Laravel License
2.0.4 ^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0 || ^11.0 MIT
2.0.3 ^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0 || ^11.0 MIT
2.0.2 ^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0 MIT
2.0.1 ^6.0 || ^7.0 || ^8.0 || ^9.0 MIT
2.0.0 ^6.0 || ^7.0 || ^8.0 || ^9.0 MIT