alqudiry/laravel-terminal

Terminal shell command in laravel

dev-master 2020-11-16 08:13 UTC

This package is auto-updated.

Last update: 2024-12-16 16:43:21 UTC


README

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();