2017 © Pedro Peláez
 

library terminal

run laravel artisan command in web application

image

recca0120/terminal

run laravel artisan command in web application

  • Monday, July 9, 2018
  • by recca0120
  • Repository
  • 10 Watchers
  • 415 Stars
  • 75,309 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 22 Forks
  • 1 Open issues
  • 66 Versions
  • 8 % Grown

The README.md

Donate, (*1)

Laravel Terminal

StyleCI Build Status Total Downloads Latest Stable Version Latest Unstable Version License Monthly Downloads Daily Downloads Scrutinizer Code Quality Code Coverage, (*2)

Installation

composer require recca0120/terminal --dev

OR, (*3)

Add Presenter to your composer.json file:, (*4)

"require-dev": {
    "recca0120/terminal": "^1.6.8"
}

Now, run a composer update on the command line from the root of your project:, (*5)

composer update

Registering the Package

Include the service provider within app/config/app.php. The service povider is needed for the generator artisan command., (*6)

'providers' => [
    ...
    Recca0120\Terminal\TerminalServiceProvider::class,
    ...
];

publish, (*7)

artisan vendor:publish --provider="Recca0120\Terminal\TerminalServiceProvider"

URL

http://localhost/path/to/terminal, (*8)

config

return [
    'enabled'    => env('APP_DEBUG'),
    'whitelists' => ['127.0.0.1', 'your ip'],
    'route'     => [
        'prefix'     => 'terminal',
        'as'         => 'terminal.',
        // if you use laravel 5.1, remember to remove web middleware
        'middleware' => ['web'],
        // if you need auth, you need use web and auth middleware
        // 'middleware' => ['web', 'auth']
    ],
    'commands' => [
        \Recca0120\Terminal\Console\Commands\Artisan::class,
        \Recca0120\Terminal\Console\Commands\ArtisanTinker::class,
        \Recca0120\Terminal\Console\Commands\Cleanup::class,
        \Recca0120\Terminal\Console\Commands\Find::class,
        \Recca0120\Terminal\Console\Commands\Mysql::class,
        \Recca0120\Terminal\Console\Commands\Tail::class,
        \Recca0120\Terminal\Console\Commands\Vi::class,
        // add your command
    ],
];

Available Commands

  • artisan
  • artisan tinker
  • find
  • mysql
  • tail
  • vi

Find

not full support, but you can delete file use this function (please check file permission), (*9)

find ./vendor -name tests -type d -maxdepth 4 -delete

Add Your Command

Add Command Class

// src/Console/Commands/Mysql.php

namespace Recca0120\Terminal\Console\Commands;

use Illuminate\Console\Command;
use Illuminate\Foundation\Inspiring;
use Recca0120\Terminal\Contracts\TerminalCommand;

class Inspire extends Command implements TerminalCommand
{
    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'inspire';

    /**
     * The console command description.
     *
     * @var string
     */
    protected $description = 'Display an inspiring quote';

    /**
     * Execute the console command.
     *
     * @return mixed
     */
    public function handle()
    {
        $this->comment(PHP_EOL.Inspiring::quote().PHP_EOL);
    }
}

ScreenShot

Available Commands

$ help

Available Commands, (*10)

Artisan List

$ artisan

Artisan List, (*11)

Migrate

$ artisan migrate --seed

Migrate, (*12)

Artisan Tinker

$ artisan tinker

Tinker, (*13)

MySQL

$ mysql
mysql> select * from users;

# change connection
mysql> use sqlite;
mysql> select * from users;

MySQL Command, (*14)

Find Command

$ find ./ -name * -maxdepth 1

Find Command, (*15)

Find and Delete

$ find ./storage/logs -name * -maxdepth 1 -delete

Find and Delete, (*16)

Vi

$ vi server.php

Vi Command, (*17)

Vi Editor, (*18)

Vi Save, (*19)

Tail

$ tail
$ tail --line=1
$ tail server.php
$ tail server.php --line 5

Tail Command, (*20)

Cleanup

$ cleanup

Cleanup Command, (*21)

The Versions

09/07 2018

dev-master

9999999-dev

run laravel artisan command in web application

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar recca0120

laravel console terminal artisan web web artisan

09/07 2018

v1.6.23

1.6.23.0

run laravel artisan command in web application

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar recca0120

laravel console terminal artisan web web artisan

07/07 2018

v1.6.22

1.6.22.0

run laravel artisan command in web application

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar recca0120

laravel console terminal artisan web web artisan

14/03 2018

v1.6.21

1.6.21.0

run laravel artisan command in web application

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar recca0120

laravel console terminal artisan web web artisan

14/03 2018

v1.6.20

1.6.20.0

run laravel artisan command in web application

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar recca0120

laravel console terminal artisan web web artisan

02/03 2018

v1.6.19

1.6.19.0

run laravel artisan command in web application

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar recca0120

laravel console terminal artisan web web artisan

09/02 2018

v1.6.18

1.6.18.0

run laravel artisan command in web application

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar recca0120

laravel console terminal artisan web web artisan

18/12 2017

v1.6.17

1.6.17.0

run laravel artisan command in web application

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar recca0120

laravel console terminal artisan web web artisan

21/11 2017

v1.6.16

1.6.16.0

run laravel artisan command in web application

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar recca0120

laravel console terminal artisan web web artisan

18/08 2017

v1.6.15

1.6.15.0

run laravel artisan command in web application

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar recca0120

laravel console terminal artisan web web artisan

19/06 2017

v1.6.14

1.6.14.0

run laravel artisan command in web application

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar recca0120

laravel console terminal artisan web web artisan

19/06 2017

v1.6.13

1.6.13.0

run laravel artisan command in web application

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar recca0120

laravel console terminal artisan web web artisan

16/06 2017

v1.6.12

1.6.12.0

run laravel artisan command in web application

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar recca0120

laravel console terminal artisan web web artisan

31/05 2017

v1.6.11

1.6.11.0

run laravel artisan command in web application

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar recca0120

laravel console terminal artisan web web artisan

19/03 2017

v1.6.10

1.6.10.0

run laravel artisan command in web application

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar recca0120

laravel console terminal artisan web web artisan

10/03 2017

v1.6.9

1.6.9.0

run laravel artisan command in web application

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar recca0120

laravel console terminal artisan web web artisan

08/03 2017

v1.6.8

1.6.8.0

run laravel artisan command in web application

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar recca0120

laravel console terminal artisan web web artisan

05/03 2017

v1.6.7

1.6.7.0

run laravel artisan command in web application

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar recca0120

laravel console terminal artisan web web artisan

08/02 2017

v1.6.6

1.6.6.0

run laravel artisan command in web application

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar recca0120

laravel console terminal artisan web web artisan

07/02 2017

v1.6.5

1.6.5.0

run laravel artisan command in web application

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar recca0120

laravel console terminal artisan web web artisan

25/01 2017

v1.6.4

1.6.4.0

run laravel artisan command in web application

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar recca0120

laravel console terminal artisan web web artisan

25/11 2016

v1.6.3

1.6.3.0

run laravel artisan command in web application

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar recca0120

laravel console terminal artisan web web artisan

24/09 2016

dev-laravel50

dev-laravel50

run laravel artisan command in web application

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar recca0120

laravel console terminal artisan web web artisan

24/09 2016

v1.6.2

1.6.2.0

run laravel artisan command in web application

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar recca0120

laravel console terminal artisan web web artisan

13/09 2016

v1.6.0

1.6.0.0

run laravel artisan command in web application

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar recca0120

laravel console terminal artisan web web artisan

13/09 2016

dev-laravel-kernel

dev-laravel-kernel

run laravel artisan command in web application

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar recca0120

laravel console terminal artisan web web artisan

11/09 2016

v1.5.13

1.5.13.0

run laravel artisan command in web application

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar recca0120

laravel console terminal artisan web web artisan

05/09 2016

v1.5.12

1.5.12.0

run laravel artisan command in web application

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar recca0120

laravel console terminal artisan web web artisan

26/08 2016

v1.5.11

1.5.11.0

run laravel artisan command in web application

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar recca0120

laravel console terminal artisan web web artisan

21/08 2016
18/08 2016
18/08 2016
16/08 2016
14/08 2016
22/07 2016
22/07 2016

dev-develop

dev-develop

run laravel artisan command in web application

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar recca0120

laravel console terminal artisan web web artisan

22/07 2016

v1.5.4

1.5.4.0

run laravel artisan command in web application

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar recca0120

laravel console terminal artisan web web artisan

11/07 2016

v1.5.2

1.5.2.0

run laravel artisan command in web application

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar recca0120

laravel console terminal artisan web web artisan

04/07 2016

v1.5.1

1.5.1.0

run laravel artisan command in web application

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar recca0120

laravel console terminal artisan web web artisan

19/06 2016

v1.5.0

1.5.0.0

run laravel artisan command in web application

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar recca0120

laravel console terminal artisan web web artisan

19/06 2016

1.4.x-dev

1.4.9999999.9999999-dev

run laravel artisan command in web application

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar recca0120

laravel console terminal artisan web web artisan

06/06 2016

v1.4.2

1.4.2.0

run laravel artisan command in web application

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar recca0120

laravel console terminal artisan web web artisan

01/06 2016

v1.4.1

1.4.1.0

run laravel artisan command in web application

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar recca0120

laravel console terminal artisan web web artisan

05/04 2016

v1.4.0

1.4.0.0

run laravel artisan command in web application

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar recca0120

laravel console terminal artisan web web artisan

03/04 2016

v1.3.11

1.3.11.0

run laravel artisan command in web application

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar recca0120

laravel console terminal artisan web web artisan

24/02 2016

v1.3.10

1.3.10.0

run laravel artisan command in web application

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar recca0120

laravel console terminal artisan web web artisan

21/02 2016

v1.3.9

1.3.9.0

run laravel artisan command in web application

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar recca0120

laravel console terminal artisan web web artisan

18/02 2016

v1.3.8

1.3.8.0

run laravel artisan command in web application

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar recca0120

laravel console terminal artisan web web artisan

18/02 2016

v1.3.7

1.3.7.0

run laravel artisan command in web application

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar recca0120

laravel console terminal artisan web web artisan

17/02 2016

v1.3.6

1.3.6.0

run laravel artisan command in web application

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar recca0120

laravel console terminal artisan web web artisan

17/02 2016

v1.3.4

1.3.4.0

run laravel artisan command in web application

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar recca0120

laravel console terminal artisan web web artisan

15/02 2016

v0.0.3

0.0.3.0

run laravel artisan command in web application

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar recca0120

laravel console terminal artisan web web artisan

15/02 2016

v0.0.4

0.0.4.0

run laravel artisan command in web application

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar recca0120

laravel console terminal artisan web web artisan

15/02 2016

v0.0.6

0.0.6.0

run laravel artisan command in web application

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar recca0120

laravel console terminal artisan web web artisan

15/02 2016

v0.0.7

0.0.7.0

run laravel artisan command in web application

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar recca0120

laravel console terminal artisan web web artisan

15/02 2016

v0.0.8

0.0.8.0

run laravel artisan command in web application

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar recca0120

laravel console terminal artisan web web artisan

15/02 2016

v0.0.9

0.0.9.0

run laravel artisan command in web application

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar recca0120

laravel console terminal artisan web web artisan

15/02 2016

v1.2.11

1.2.11.0

run laravel artisan command in web application

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar recca0120

laravel console terminal artisan web web artisan

15/02 2016

v1.2.3

1.2.3.0

run laravel artisan command in web application

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar recca0120

laravel console terminal artisan web web artisan

15/02 2016

v1.2.6

1.2.6.0

run laravel artisan command in web application

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar recca0120

laravel console terminal artisan web web artisan

15/02 2016

v1.2.7

1.2.7.0

run laravel artisan command in web application

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar recca0120

laravel console terminal artisan web web artisan

15/02 2016

v1.2.8

1.2.8.0

run laravel artisan command in web application

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar recca0120

laravel console terminal artisan web web artisan

15/02 2016

v1.3.0

1.3.0.0

run laravel artisan command in web application

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar recca0120

laravel console terminal artisan web web artisan

15/02 2016

v1.3.3

1.3.3.0

run laravel artisan command in web application

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar recca0120

laravel console terminal artisan web web artisan

01/01 2016

v1.1.3

1.1.3.0

Laravel Artisan Terminal

  Sources   Download

MIT

The Requires

 

by Avatar recca0120

laravel terminal artisan

01/01 2016

v1.1.0

1.1.0.0

Laravel Artisan Terminal

  Sources   Download

MIT

The Requires

 

by Avatar recca0120

laravel terminal artisan