定制 maso/laravel-terminal 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

maso/laravel-terminal

最新稳定版本:v1.0.0

Composer 安装命令:

composer require maso/laravel-terminal

包简介

A Laravel package that enables developers to run shell commands directly through the browser.

README 文档

README

Laravel Terminal is a package that allows you to interact with a shell environment directly from your browser. This tool is designed for development purposes only and should not be used in production environments due to security risks associated with exposing shell access.

Installation

You can install the package via composer:

composer require maso/laravel-terminal

Publish the package's configuration files:

php artisan vendor:publish --provider="Maso\LaravelTerminal\LaravelTerminalServiceProvider" --tag="config"

Usage

Once installed and configured, navigate to /terminal in your browser to access the terminal interface.

Warning : Executing interactive commands (e.g., commands that expect user input or running services) through the web interface will cause the server to hang. To resolve this, you will need to manually restart the server.

Security Considerations

This package is intended for development purposes only. Since it exposes shell access to your application, it is highly recommended to secure the route using middleware such as authentication or IP whitelisting to prevent unauthorized access. This can be done by modifying route array in the config/laravel-terminal.php file :

'route' => [
    'prefix' => 'terminal',
    'as' => 'terminal.',
    'middleware' => ['auth', 'can:access-terminal'], // Example: Add your middleware here
],

Contributing

Contributions are welcome! If you'd like to improve this package, feel free to fork it, submit issues, or make pull requests.

Security

If you discover any security vulnerabilities, please contact me directly at majd.soubh53@gmail.com. If the issue is not resolved quickly, you may open an issue on GitHub.

Credits

统计信息

  • 总下载量: 11
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-10-23