Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yokesharun/ping-on-terminal
Run all terminal commands using this package
https://github.com/yokesharun/ping-on-terminal
artisan composer laravel laravel-package package
Last synced: 9 days ago
JSON representation
Run all terminal commands using this package
- Host: GitHub
- URL: https://github.com/yokesharun/ping-on-terminal
- Owner: yokesharun
- License: mit
- Created: 2016-07-29T18:06:44.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-07-20T08:42:18.000Z (over 7 years ago)
- Last Synced: 2024-04-22T04:37:33.083Z (9 months ago)
- Topics: artisan, composer, laravel, laravel-package, package
- Language: PHP
- Homepage: https://yokesharun.github.io/ping-on-terminal/
- Size: 5.86 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ping On Terminal For laravel 5.*
Run all terminal commands from your controller using this packageInstallation
============================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');
```