roy404/artisan
最新稳定版本:1.3.5
Composer 安装命令:
composer require roy404/artisan
包简介
A custom Artisan-like command runner for web environments. Run your Artisan commands from the browser or other interfaces.
README 文档
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);
统计信息
- 总下载量: 233
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-04-18