PHPackages                             recca0120/terminal - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [CLI &amp; Console](/categories/cli)
4. /
5. recca0120/terminal

ActiveLibrary[CLI &amp; Console](/categories/cli)

recca0120/terminal
==================

run laravel artisan command in web application

v1.12.2(1y ago)878410.9k↓33.6%63[8 issues](https://github.com/recca0120/laravel-terminal/issues)[12 PRs](https://github.com/recca0120/laravel-terminal/pulls)2MITPHPPHP &gt;=5.5.9CI passing

Since Jan 1Pushed 1y ago18 watchersCompare

[ Source](https://github.com/recca0120/laravel-terminal)[ Packagist](https://packagist.org/packages/recca0120/terminal)[ RSS](/packages/recca0120-terminal/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (15)Versions (93)Used By (2)

[![Donate](https://camo.githubusercontent.com/604e3db9c8751116b3f765aad0353ec7ded655bbe8aaacbc38d8c4a6b784b3ed/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f446f6e6174652d50617950616c2d677265656e2e737667)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YNNLC9V28YDPN)

Laravel Terminal
================

[](#laravel-terminal)

[![StyleCI](https://camo.githubusercontent.com/04b8c8299364555bde0ae06f67c5d36a03d840f796bb8dcb99fbbc091ecebc36/68747470733a2f2f7374796c6563692e696f2f7265706f732f34353839323532312f736869656c643f7374796c653d666c6174)](https://styleci.io/repos/45892521)[![Build Status](https://camo.githubusercontent.com/75d29ee3c142755f95cc350d4ae8bfe48e325e20c32772796e48852aacbde3fe/68747470733a2f2f7472617669732d63692e6f72672f7265636361303132302f6c61726176656c2d7465726d696e616c2e737667)](https://travis-ci.org/recca0120/laravel-terminal)[![Total Downloads](https://camo.githubusercontent.com/ab75ff34acb91f5cac46b41c8062c38a23b8380a773a4baa463ee2d74ba29908/68747470733a2f2f706f7365722e707567782e6f72672f7265636361303132302f7465726d696e616c2f642f746f74616c2e737667)](https://packagist.org/packages/recca0120/terminal)[![Latest Stable Version](https://camo.githubusercontent.com/03876b0af88e2acc9ae8f42436add5698567905036dfd8e984c62dec4dad22ff/68747470733a2f2f706f7365722e707567782e6f72672f7265636361303132302f7465726d696e616c2f762f737461626c652e737667)](https://packagist.org/packages/recca0120/terminal)[![Latest Unstable Version](https://camo.githubusercontent.com/6d4e1a26c010ec3e995f3144bd2cde036b0f3904d4987c1bb2238b2fe577c7cc/68747470733a2f2f706f7365722e707567782e6f72672f7265636361303132302f7465726d696e616c2f762f756e737461626c652e737667)](https://packagist.org/packages/recca0120/terminal)[![License](https://camo.githubusercontent.com/74c17d39cb7a016d35a682f34c4d2ba5f95a35ac3f94a7ec7c44ec856ce485c3/68747470733a2f2f706f7365722e707567782e6f72672f7265636361303132302f7465726d696e616c2f6c6963656e73652e737667)](https://packagist.org/packages/recca0120/terminal)[![Monthly Downloads](https://camo.githubusercontent.com/d418a3f1f4ca2782ab201710e4cfd70c5adfc524c301627a05abbf515c8ab6a2/68747470733a2f2f706f7365722e707567782e6f72672f7265636361303132302f7465726d696e616c2f642f6d6f6e74686c79)](https://packagist.org/packages/recca0120/terminal)[![Daily Downloads](https://camo.githubusercontent.com/e396682aa6a5befd4c83c78507b9a5d4716a331769ee979968123153c986fa82/68747470733a2f2f706f7365722e707567782e6f72672f7265636361303132302f7465726d696e616c2f642f6461696c79)](https://packagist.org/packages/recca0120/terminal)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/faa1116002089c804471d213528319b9312781cc81652b7cd9faa957eb11b609/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7265636361303132302f6c61726176656c2d7465726d696e616c2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/recca0120/laravel-terminal/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/067284b16249068cc8d6cd6e14a4a2d0f4439e7fec2d0111045a54e29583f47e/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7265636361303132302f6c61726176656c2d7465726d696e616c2f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/recca0120/laravel-terminal/?branch=master)

Installation
------------

[](#installation)

```
composer require recca0120/terminal --dev
```

OR

Add Presenter to your composer.json file:

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

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

```
composer update

```

### Registering the Package

[](#registering-the-package)

Include the service provider within `app/config/app.php`. The service povider is needed for the generator artisan command.

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

publish

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

### URL

[](#url)

### config

[](#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
------------------

[](#available-commands)

- artisan
- artisan tinker
- find
- mysql
- tail
- vi

### Find

[](#find)

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

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

Add Your Command
----------------

[](#add-your-command)

### Add Command Class

[](#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
----------

[](#screenshot)

### Available Commands

[](#available-commands-1)

```
$ help
```

[![Available Commands](https://camo.githubusercontent.com/0e6f2a7e16e2364d078d02d1dcb9f4c45bf02c1c4c742aa8de2cad88bc153826/68747470733a2f2f63646e2e7261776769742e636f6d2f7265636361303132302f7465726d696e616c2f6d61737465722f646f63732f73637265656e73686f74732f617661696c61626c652d636f6d6d616e64732e706e67)](https://camo.githubusercontent.com/0e6f2a7e16e2364d078d02d1dcb9f4c45bf02c1c4c742aa8de2cad88bc153826/68747470733a2f2f63646e2e7261776769742e636f6d2f7265636361303132302f7465726d696e616c2f6d61737465722f646f63732f73637265656e73686f74732f617661696c61626c652d636f6d6d616e64732e706e67)

### Artisan List

[](#artisan-list)

```
$ artisan
```

[![Artisan List](https://camo.githubusercontent.com/39a7288c72906a84e56357c13537691e84f0e074e21e5fc8bf92d6e49c190a25/68747470733a2f2f63646e2e7261776769742e636f6d2f7265636361303132302f7465726d696e616c2f6d61737465722f646f63732f73637265656e73686f74732f6172746973616e2d6c6973742e706e67)](https://camo.githubusercontent.com/39a7288c72906a84e56357c13537691e84f0e074e21e5fc8bf92d6e49c190a25/68747470733a2f2f63646e2e7261776769742e636f6d2f7265636361303132302f7465726d696e616c2f6d61737465722f646f63732f73637265656e73686f74732f6172746973616e2d6c6973742e706e67)

### Migrate

[](#migrate)

```
$ artisan migrate --seed
```

[![Migrate](https://camo.githubusercontent.com/716ec30ab285a54c682f56db03e38ae882cc36c3052ae005d99623ea194b3db6/68747470733a2f2f63646e2e7261776769742e636f6d2f7265636361303132302f7465726d696e616c2f6d61737465722f646f63732f73637265656e73686f74732f6172746973616e2d6d6967726174652e706e67)](https://camo.githubusercontent.com/716ec30ab285a54c682f56db03e38ae882cc36c3052ae005d99623ea194b3db6/68747470733a2f2f63646e2e7261776769742e636f6d2f7265636361303132302f7465726d696e616c2f6d61737465722f646f63732f73637265656e73686f74732f6172746973616e2d6d6967726174652e706e67)

### Artisan Tinker

[](#artisan-tinker)

```
$ artisan tinker
```

[![Tinker](https://camo.githubusercontent.com/4f58cd10c59613cb55d62d55b4486ed8a8e85c36d6fc099d102a5a633d835ab2/68747470733a2f2f63646e2e7261776769742e636f6d2f7265636361303132302f7465726d696e616c2f6d61737465722f646f63732f73637265656e73686f74732f6172746973616e2d74696e6b65722e706e67)](https://camo.githubusercontent.com/4f58cd10c59613cb55d62d55b4486ed8a8e85c36d6fc099d102a5a633d835ab2/68747470733a2f2f63646e2e7261776769742e636f6d2f7265636361303132302f7465726d696e616c2f6d61737465722f646f63732f73637265656e73686f74732f6172746973616e2d74696e6b65722e706e67)

### MySQL

[](#mysql)

```
$ mysql
mysql> select * from users;

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

[![MySQL Command](https://camo.githubusercontent.com/40bfb1984bf7cbf8ade6553b9c99d296afac5583f5d83ef2c0d510eb703269eb/68747470733a2f2f63646e2e7261776769742e636f6d2f7265636361303132302f7465726d696e616c2f6d61737465722f646f63732f73637265656e73686f74732f6d7973716c2d636f6d6d616e642e706e67)](https://camo.githubusercontent.com/40bfb1984bf7cbf8ade6553b9c99d296afac5583f5d83ef2c0d510eb703269eb/68747470733a2f2f63646e2e7261776769742e636f6d2f7265636361303132302f7465726d696e616c2f6d61737465722f646f63732f73637265656e73686f74732f6d7973716c2d636f6d6d616e642e706e67)

### Find Command

[](#find-command)

```
$ find ./ -name * -maxdepth 1
```

[![Find Command](https://camo.githubusercontent.com/c88f5d764e26e40f969c5c8cfbf436bf30a64afb32690d93b44390d34b218c7e/68747470733a2f2f63646e2e7261776769742e636f6d2f7265636361303132302f7465726d696e616c2f6d61737465722f646f63732f73637265656e73686f74732f66696e642d636f6d6d616e642e706e67)](https://camo.githubusercontent.com/c88f5d764e26e40f969c5c8cfbf436bf30a64afb32690d93b44390d34b218c7e/68747470733a2f2f63646e2e7261776769742e636f6d2f7265636361303132302f7465726d696e616c2f6d61737465722f646f63732f73637265656e73686f74732f66696e642d636f6d6d616e642e706e67)

### Find and Delete

[](#find-and-delete)

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

[![Find and Delete](https://camo.githubusercontent.com/17d19daa2a0283b11fb4e7054a97c1dd583a16e06207c7e3d1ad4ba415dbb136/68747470733a2f2f63646e2e7261776769742e636f6d2f7265636361303132302f7465726d696e616c2f6d61737465722f646f63732f73637265656e73686f74732f66696e642d616e642d64656c6574652e706e67)](https://camo.githubusercontent.com/17d19daa2a0283b11fb4e7054a97c1dd583a16e06207c7e3d1ad4ba415dbb136/68747470733a2f2f63646e2e7261776769742e636f6d2f7265636361303132302f7465726d696e616c2f6d61737465722f646f63732f73637265656e73686f74732f66696e642d616e642d64656c6574652e706e67)

### Vi

[](#vi)

```
$ vi server.php
```

[![Vi Command](https://camo.githubusercontent.com/fe8d6c29a265939aaa244e0402e1b65bcc0afe1e45088dd72c850ea9a7577796/68747470733a2f2f63646e2e7261776769742e636f6d2f7265636361303132302f7465726d696e616c2f6d61737465722f646f63732f73637265656e73686f74732f76692d636f6d6d616e642e706e67)](https://camo.githubusercontent.com/fe8d6c29a265939aaa244e0402e1b65bcc0afe1e45088dd72c850ea9a7577796/68747470733a2f2f63646e2e7261776769742e636f6d2f7265636361303132302f7465726d696e616c2f6d61737465722f646f63732f73637265656e73686f74732f76692d636f6d6d616e642e706e67)

[![Vi Editor](https://camo.githubusercontent.com/cd9b96a076c29c038d5701765ec27b74e50a72316cd7cbf15715ed4031915b98/68747470733a2f2f63646e2e7261776769742e636f6d2f7265636361303132302f7465726d696e616c2f6d61737465722f646f63732f73637265656e73686f74732f76692d656469746f722e706e67)](https://camo.githubusercontent.com/cd9b96a076c29c038d5701765ec27b74e50a72316cd7cbf15715ed4031915b98/68747470733a2f2f63646e2e7261776769742e636f6d2f7265636361303132302f7465726d696e616c2f6d61737465722f646f63732f73637265656e73686f74732f76692d656469746f722e706e67)

[![Vi Save](https://camo.githubusercontent.com/6d9b78f508c44f22eb59d63d4463967e80ffffadf685d204fa3dc8cf6eae05b9/68747470733a2f2f63646e2e7261776769742e636f6d2f7265636361303132302f7465726d696e616c2f6d61737465722f646f63732f73637265656e73686f74732f76692d736176652e706e67)](https://camo.githubusercontent.com/6d9b78f508c44f22eb59d63d4463967e80ffffadf685d204fa3dc8cf6eae05b9/68747470733a2f2f63646e2e7261776769742e636f6d2f7265636361303132302f7465726d696e616c2f6d61737465722f646f63732f73637265656e73686f74732f76692d736176652e706e67)

### Tail

[](#tail)

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

[![Tail Command](https://camo.githubusercontent.com/245c402bac5c5fd9b0540bf949330e6500e98392dd50d08f65af6a93421c19d3/68747470733a2f2f63646e2e7261776769742e636f6d2f7265636361303132302f7465726d696e616c2f6d61737465722f646f63732f73637265656e73686f74732f7461696c2d636f6d6d616e642e706e67)](https://camo.githubusercontent.com/245c402bac5c5fd9b0540bf949330e6500e98392dd50d08f65af6a93421c19d3/68747470733a2f2f63646e2e7261776769742e636f6d2f7265636361303132302f7465726d696e616c2f6d61737465722f646f63732f73637265656e73686f74732f7461696c2d636f6d6d616e642e706e67)

### Cleanup

[](#cleanup)

```
$ cleanup
```

[![Cleanup Command](https://camo.githubusercontent.com/68efa0b5f80dbe28c254860a386c942e9b9d1a31e84f278a5cff7fd32a56e941/68747470733a2f2f63646e2e7261776769742e636f6d2f7265636361303132302f7465726d696e616c2f6d61737465722f646f63732f73637265656e73686f74732f636c65616e75702d636f6d6d616e642e706e67)](https://camo.githubusercontent.com/68efa0b5f80dbe28c254860a386c942e9b9d1a31e84f278a5cff7fd32a56e941/68747470733a2f2f63646e2e7261776769742e636f6d2f7265636361303132302f7465726d696e616c2f6d61737465722f646f63732f73637265656e73686f74732f636c65616e75702d636f6d6d616e642e706e67)

###  Health Score

53

—

FairBetter than 97% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity57

Moderate usage in the ecosystem

Community25

Small or concentrated contributor base

Maturity74

Established project with proven stability

 Bus Factor1

Top contributor holds 97.4% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~40 days

Recently: every ~216 days

Total

78

Last Release

696d ago

Major Versions

v0.0.9 → v1.3.32016-02-15

v0.0.3 → v1.3.42016-02-17

PHP version history (2 changes)v1.1.0PHP &gt;=5.4.0

v0.0.4PHP &gt;=5.5.9

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1390554?v=4)[Recca Tsai](/maintainers/recca0120)[@recca0120](https://github.com/recca0120)

---

Top Contributors

[![recca0120](https://avatars.githubusercontent.com/u/1390554?v=4)](https://github.com/recca0120 "recca0120 (114 commits)")[![owenvoke](https://avatars.githubusercontent.com/u/1899334?v=4)](https://github.com/owenvoke "owenvoke (2 commits)")[![erjanmx](https://avatars.githubusercontent.com/u/4899432?v=4)](https://github.com/erjanmx "erjanmx (1 commits)")

---

Tags

artisanlaravelterminalwebconsoleterminalweblaravelartisanweb artisan

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/recca0120-terminal/health.svg)

```
[![Health](https://phpackages.com/badges/recca0120-terminal/health.svg)](https://phpackages.com/packages/recca0120-terminal)
```

###  Alternatives

[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k12.1M99](/packages/laravel-pulse)[laravel-zero/framework

The Laravel Zero Framework.

3371.4M369](/packages/laravel-zero-framework)[psalm/plugin-laravel

Psalm plugin for Laravel

3274.9M308](/packages/psalm-plugin-laravel)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)[nunomaduro/laravel-console-menu

Laravel Console Menu is an output method for your Laravel/Laravel Zero commands.

815412.0k48](/packages/nunomaduro-laravel-console-menu)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
