定制 outl1ne/laravel-console-over-http 二次开发

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

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

outl1ne/laravel-console-over-http

最新稳定版本:2.0.4

Composer 安装命令:

composer require outl1ne/laravel-console-over-http

包简介

Run console commands over HTTP connection for Laravel applications.

README 文档

README

Latest Version on Packagist Total Downloads

Run console commands over HTTP connection for Laravel applications.

Creates a route with a path /console that runs the command from HTTP parameters in a console.

Usage

In routes/web.php add a line:

ConsoleOverHttp::endpoint();

Configure an environment variable CONSOLE_OVER_HTTP_TOKEN to secure the endpoint.

Visit the route in your app, e.g. http://localhost:4000/console?command=php%20artisan%20inspire&token=your-token

Example - insecure usage

ConsoleOverHttp::endpoint()->insecure();

Or set the environment variable CONSOLE_OVER_HTTP_INSECURE=true.

Example - custom authentication logic

ConsoleOverHttp::endpoint()->auth(function () {
    return \Auth::check();
});

Installation

Install the package in a Laravel project via Composer:

composer require outl1ne/laravel-console-over-http

Credits

License

Laravel Console over HTTP is open-sourced software licensed under the MIT license.

统计信息

  • 总下载量: 15.94k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-08-24