定制 josh/laravel-terminal 二次开发

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

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

josh/laravel-terminal

最新稳定版本:0.1

Composer 安装命令:

composer require josh/laravel-terminal

包简介

Terminal shell command in laravel

README 文档

README

Build Status Latest Stable Version Total Downloads Latest Unstable Version License

Laravel Terminal package

Run shell command easy in your laravel projects

The package is in process.

Requirement

  • Laravel ^6
  • PHP ^7.2

Install

Via Composer

$ composer require josh/laravel-terminal

Config

Add the following provider to providers part of config/app.php

Josh\Terminal\TerminalServiceProvider::class

and the following Facade to the aliases part

'Terminal' => Josh\Terminal\TerminalFacade::class

and then run

php artisan vendor:publish

for generating terminal config file into main config directory

Usage

You can run Terminal shell commands in laravel just like this:

$response = \Terminal::command('ls')->execute();

and you can get output of command just like this:

return $response->getBody()->getContents();

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-09-13