zillur-web/laravel-web-terminal
Composer 安装命令:
composer require zillur-web/laravel-web-terminal
包简介
Secure web-based Laravel Artisan terminal for browser
README 文档
README
A secure web-based Artisan terminal for Laravel applications.
Laravel Web Terminal allows you to run selected Artisan commands directly from your browser with proper security and command whitelisting.
✨ Features
- Run selected Artisan commands from browser
- Command whitelist protection
- Configurable route prefix
- Middleware protection (web + CSRF)
- Optional secret token for security (login-free access)
- Publishable configuration file and views
- Laravel auto-discovery support
- Compatible with Laravel 8 → 12
- Compatible with PHP 8.0 → 8.5
📦 Installation
Install via Composer:
composer require zillur-web/laravel-web-terminal
⚙️ Publish Configuration
php artisan vendor:publish --tag=web-terminal-config
Optional: Publish views
php artisan vendor:publish --tag=web-terminal-views
🚀 Usage
Visit /terminal route to access the terminal.
Optional secret token is required for access (login-free)
Token can be passed via query string or header (X-WEB-TERMINAL-TOKEN)
Example: /terminal?token=laravel-web-terminal
Or in JavaScript headers:
headers: {
"X-WEB-TERMINAL-TOKEN": "laravel-web-terminal"
}
🔐 Security
For security reasons, only commands listed in the configuration file are allowed.
Example config:
'allowed_commands' => [ 'migrate', 'cache:clear', 'config:clear', 'route:clear', 'queue:restart', ],
It is strongly recommended to use authentication middleware in production.
⚙️ Configuration
Config file: config/web-terminal.php
return [ // Route prefix 'prefix' => 'terminal', // Middleware 'middleware' => ['web'], // Allowed artisan commands 'allowed_commands' => [ 'migrate', 'cache:clear', 'config:clear', 'route:clear', 'queue:restart', ], // Optional secret token for security (login-free access) 'access_token' => env('WEB_TERMINAL_TOKEN', 'laravel-web-terminal'), ];
🖥 Requirements
- PHP 8.0 → 8.5
- Laravel 8 → 12
🤝 Contributing
Contributions are welcome. Feel free to submit a pull request.
📄 License
This package is open-sourced software licensed under the MIT license.
zillur-web/laravel-web-terminal 适用场景与选型建议
zillur-web/laravel-web-terminal 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 4 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 03 月 03 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 zillur-web/laravel-web-terminal 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 zillur-web/laravel-web-terminal 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 4
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 26
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-03-03