kofoworola/route-commands

Installs: 48

Dependents: 0

Suggesters: 0

Security: 0

Stars: 41

Watchers: 3

Forks: 9

Open Issues: 2

pkg:composer/kofoworola/route-commands

v1.1 2018-10-23 02:05 UTC

This package is auto-updated.

Last update: 2025-09-29 01:59:51 UTC


README

RouteCommands is a laravel library that allows you run configured laravel commands directly from a route.

It is particularly useful for situations where laravel is being run on an environment with little to no ssh access

Getting started

Install RouteCommands by running:

composer require kofoworola/route-commands

Then run php artisan vendor:publish, this will publish the config/commands.php file to your project where you can then setup your commands

Once your commands and routes have been setup, simply navigate to your route e.g http://localhost/commands/route_list and you should be greeted with a screen similar to the one below if authentication has been enabled:

image

After filling in your password and hitting enter your commands would run image

To add new commands or block new commands simply update the config file and re-cache your config by navigating to /config_cache.

this package does nut run commands with exec() thats just plain unsafe

This library was born out of my frustration with using Laravel on a shared hosting environment. I hope you find some good use for it.

Enjoy!