https://github.com/iamalirezaj/laravel-terminal
📟 Terminal Shell commands in laravel
https://github.com/iamalirezaj/laravel-terminal
laravel php shell terminal
Last synced: 5 months ago
JSON representation
📟 Terminal Shell commands in laravel
- Host: GitHub
- URL: https://github.com/iamalirezaj/laravel-terminal
- Owner: iamalirezaj
- License: mit
- Archived: true
- Created: 2017-09-13T00:34:53.000Z (almost 9 years ago)
- Default Branch: develop
- Last Pushed: 2020-01-14T16:37:12.000Z (over 6 years ago)
- Last Synced: 2025-11-13T23:14:23.682Z (7 months ago)
- Topics: laravel, php, shell, terminal
- Language: PHP
- Homepage:
- Size: 12.7 KB
- Stars: 15
- Watchers: 1
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
[](https://travis-ci.org/MrJoshLab/laravel-terminal)
[](https://packagist.org/packages/josh/laravel-terminal)
[](https://packagist.org/packages/josh/laravel-terminal)
[](//packagist.org/packages/josh/laravel-terminal)
[](https://packagist.org/packages/josh/laravel-terminal)
# 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
``` bash
$ composer require josh/laravel-terminal
```
## Config
Add the following provider to providers part of config/app.php
``` php
Josh\Terminal\TerminalServiceProvider::class
```
and the following Facade to the aliases part
``` php
'Terminal' => Josh\Terminal\TerminalFacade::class
```
and then run
``` bash
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:
```php
$response = \Terminal::command('ls')->execute();
```
and you can get output of command just like this:
```php
return $response->getBody()->getContents();
```
## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.