recca0120 / Laravel Terminal
Licence: mit
Runs artisan command in web application
Stars: ✭ 682
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 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 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
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
Laravel Terminal
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
Artisan List
$ artisan
Migrate
$ artisan migrate --seed
Artisan Tinker
$ artisan tinker
MySQL
$ mysql
mysql> select * from users;
# change connection
mysql> use sqlite;
mysql> select * from users;
Find Command
$ find ./ -name * -maxdepth 1
Find and Delete
$ find ./storage/logs -name * -maxdepth 1 -delete
Vi
$ vi server.php
Tail
$ tail
$ tail --line=1
$ tail server.php
$ tail server.php --line 5
Cleanup
$ cleanup
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].