All Projects → recca0120 → Laravel Terminal

recca0120 / Laravel Terminal

Licence: mit
Runs artisan command in web application

Projects that are alternatives of or similar to Laravel Terminal

Artisan Menu
📝 Artisan Menu - Use Artisan via an elegant console GUI
Stars: ✭ 141 (-79.33%)
Mutual labels:  laravel, artisan
Laravel Craftsman
Laravel Craftsman CLI for easily crafting Laravel assets for any project (artisan make on steroids)
Stars: ✭ 227 (-66.72%)
Mutual labels:  laravel, artisan
Laravel Mailable Test
An artisan command to easily test mailables
Stars: ✭ 143 (-79.03%)
Mutual labels:  laravel, artisan
Generators
Laravel File Generators with config and publishable stubs
Stars: ✭ 102 (-85.04%)
Mutual labels:  laravel, artisan
Generator
Laravel 5.3+ Scaffold Generator, Support both bootstrap and Semantic UI
Stars: ✭ 327 (-52.05%)
Mutual labels:  laravel, artisan
Laravel Deployer
🚀 Zero-downtime deployment out-of-the-box
Stars: ✭ 1,536 (+125.22%)
Mutual labels:  laravel, artisan
Artisan Gui
Simple but yet powerful library for running almost all artisan commands.
Stars: ✭ 226 (-66.86%)
Mutual labels:  laravel, artisan
Laravel Opcache
Laravel Package for OPcache
Stars: ✭ 1,116 (+63.64%)
Mutual labels:  laravel, artisan
Laravel Zero
A PHP framework for console artisans
Stars: ✭ 2,821 (+313.64%)
Mutual labels:  terminal, laravel
Laravel Link Checker
Check all links in a Laravel application
Stars: ✭ 253 (-62.9%)
Mutual labels:  laravel, artisan
Flex Env
🌳 Manage your .env file in Laravel projects through artisan
Stars: ✭ 95 (-86.07%)
Mutual labels:  laravel, artisan
Laravel Kit
A desktop Laravel admin panel app
Stars: ✭ 440 (-35.48%)
Mutual labels:  laravel, artisan
Laravel Ng Artisan Generators
Laravel artisan AngularJS generators
Stars: ✭ 91 (-86.66%)
Mutual labels:  laravel, artisan
Laravel Artisan Dd
Quickly run some code via Artisan
Stars: ✭ 136 (-80.06%)
Mutual labels:  laravel, artisan
Env Providers
👷 Load Laravel service providers based on your application's environment.
Stars: ✭ 73 (-89.3%)
Mutual labels:  laravel, artisan
Laravel Migrate Fresh
An artisan command to build up a database from scratch
Stars: ✭ 179 (-73.75%)
Mutual labels:  laravel, artisan
Blade Migrations Laravel
An intelligent alternative version of Laravel 5/6 Database Migrations - uses raw-sql syntax, transactions, auto-rollback, UP-DOWN-UP testing
Stars: ✭ 25 (-96.33%)
Mutual labels:  laravel, artisan
Webshowu
webshowu—laravel开源项目—秀站分类目录源代码
Stars: ✭ 52 (-92.38%)
Mutual labels:  laravel, artisan
Laravel Cronless Schedule
Run the Laravel scheduler without relying on cron
Stars: ✭ 231 (-66.13%)
Mutual labels:  laravel, artisan
Scout Extended
Scout Extended: The Full Power of Algolia in Laravel
Stars: ✭ 330 (-51.61%)
Mutual labels:  laravel, artisan

Donate

Laravel Terminal

StyleCI Build Status Total Downloads Latest Stable Version Latest Unstable Version License Monthly Downloads Daily Downloads Scrutinizer Code Quality Code Coverage

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

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

http://localhost/path/to/terminal

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)

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

Artisan List

$ artisan

Artisan List

Migrate

$ artisan migrate --seed

Migrate

Artisan Tinker

$ artisan tinker

Tinker

MySQL

$ mysql
mysql> select * from users;

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

MySQL Command

Find Command

$ find ./ -name * -maxdepth 1

Find Command

Find and Delete

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

Find and Delete

Vi

$ vi server.php

Vi Command

Vi Editor

Vi Save

Tail

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

Tail Command

Cleanup

$ cleanup

Cleanup Command

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].