laravel-terminal maintained by alqudiry
Description
Terminal shell command in laravel
Author
Last update
2020/11/16 09:13
(dev-master)
License
Downloads
1 652
Laravel Terminal package
Run shell command easy in your laravel projects
This package is copy of MrJoshLab/laravel-terminal with some changes.
Install
Via Composer
$ composer require alqudiry/laravel-terminal
Usage
You can run Terminal shell commands in laravel just like this:
use Alqudiry\Terminal\Command;
$command = new Command();
$response = $command->command('ls')->execute();
and you can get output of command just like this:
return $response->getBody()->getContents();