yokesharun / ping-on-terminal by yokesharun

Run all terminal commands using this package
9
4
2
Package Data
Maintainer Username: yokesharun
Maintainer Contact: ayokesh.cse@gmail.com (yokesharun)
Package Create Date: 2016-07-29
Package Last Update: 2017-07-20
Home Page: https://yokesharun.github.io/ping-on-terminal/
Language: PHP
License: Unknown
Last Refreshed: 2024-11-23 03:23:57
Package Statistics
Total Downloads: 9
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 4
Total Watchers: 2
Total Forks: 1
Total Open Issues: 0

Ping On Terminal For laravel 5.*

Run all terminal commands from your controller using this package

Installation

Add yokesharun/ping-on-terminal as a requirement to composer.json:

Or

composer require "yokesharun/ping-on-terminal":"dev-master"

Add the following to the providers in app/config/app.php:

'providers' => [
...
Yokesharun\PingOnTerminal\TerminalServiceProvider::class,
]

Usage

use the namespace in top of the controller

use Yokesharun\PingOnTerminal\TerminalController;

create a object all the function

$ob = new Yokesharun\PingOnTerminal\TerminalController;
$ob->use_default('composer dump-autoload');

to run all terminal commands use use_default function

$ob->use_default('composer dump-autoload');

to run artisan only commands use use_artisan function

$ob->use_artisan('serve');
$ob->use_artisan('migrate');