roy404/artisan

A custom Artisan-like command runner for web environments. Run your Artisan commands from the browser or other interfaces.

Installs: 149

Dependents: 1

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/roy404/artisan

v1.2.4 2025-09-28 03:58 UTC

README

A custom Artisan-like command runner for web environments. Run your custom Artisan commands from the CLI session.

Installation

Install via Composer:

composer require roy404/artisan

Usage (CLI Mode)

To start a CLI session using Web-Artisan, add the following line to any PHP file:

App\Console\Terminal::capture($argv);

Then, run the file using PHP:

php filename.php

Loading Custom Commands

If you want to load additional commands (also known as directives), simply call the config() method before invoking capture().

  • The first parameter defines the directive group name (e.g., 'commands').
  • The second parameter is optional and allows you to specify a custom root path where the directive group is stored.
App\Console\Terminal::config('commands');
App\Console\Terminal::capture($argv);