{"id":13452867,"url":"https://github.com/recca0120/laravel-terminal","last_synced_at":"2025-05-14T02:04:53.963Z","repository":{"id":42574169,"uuid":"45892521","full_name":"recca0120/laravel-terminal","owner":"recca0120","description":"Runs artisan command in web application","archived":false,"fork":false,"pushed_at":"2025-03-17T23:30:19.000Z","size":7608,"stargazers_count":865,"open_issues_count":19,"forks_count":59,"subscribers_count":19,"default_branch":"master","last_synced_at":"2025-04-10T16:48:38.915Z","etag":null,"topics":["artisan","laravel","terminal","web"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/recca0120.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2015-11-10T06:32:57.000Z","updated_at":"2025-03-28T17:23:40.000Z","dependencies_parsed_at":"2024-04-10T04:38:12.477Z","dependency_job_id":"ac7e805f-1617-4d9b-b452-ba773cc46747","html_url":"https://github.com/recca0120/laravel-terminal","commit_stats":{"total_commits":284,"total_committers":6,"mean_commits":"47.333333333333336","dds":0.5035211267605634,"last_synced_commit":"4644af501fa24c9c1cb5dd62a9014c6f29a8330e"},"previous_names":[],"tags_count":78,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/recca0120%2Flaravel-terminal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/recca0120%2Flaravel-terminal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/recca0120%2Flaravel-terminal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/recca0120%2Flaravel-terminal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/recca0120","download_url":"https://codeload.github.com/recca0120/laravel-terminal/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254052672,"owners_count":22006716,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["artisan","laravel","terminal","web"],"created_at":"2024-07-31T08:00:25.356Z","updated_at":"2025-05-14T02:04:53.942Z","avatar_url":"https://github.com/recca0120.png","language":"PHP","funding_links":["https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=YNNLC9V28YDPN"],"categories":["Popular Packages","Paquetes utiles"],"sub_categories":[],"readme":" [![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=YNNLC9V28YDPN)\n\n# Laravel Terminal\n\n[![StyleCI](https://styleci.io/repos/45892521/shield?style=flat)](https://styleci.io/repos/45892521)\n[![Build Status](https://travis-ci.org/recca0120/laravel-terminal.svg)](https://travis-ci.org/recca0120/laravel-terminal)\n[![Total Downloads](https://poser.pugx.org/recca0120/terminal/d/total.svg)](https://packagist.org/packages/recca0120/terminal)\n[![Latest Stable Version](https://poser.pugx.org/recca0120/terminal/v/stable.svg)](https://packagist.org/packages/recca0120/terminal)\n[![Latest Unstable Version](https://poser.pugx.org/recca0120/terminal/v/unstable.svg)](https://packagist.org/packages/recca0120/terminal)\n[![License](https://poser.pugx.org/recca0120/terminal/license.svg)](https://packagist.org/packages/recca0120/terminal)\n[![Monthly Downloads](https://poser.pugx.org/recca0120/terminal/d/monthly)](https://packagist.org/packages/recca0120/terminal)\n[![Daily Downloads](https://poser.pugx.org/recca0120/terminal/d/daily)](https://packagist.org/packages/recca0120/terminal)\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/recca0120/laravel-terminal/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/recca0120/laravel-terminal/?branch=master)\n[![Code Coverage](https://scrutinizer-ci.com/g/recca0120/laravel-terminal/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/recca0120/laravel-terminal/?branch=master)\n\n## Installation\n\n```bash\ncomposer require recca0120/terminal --dev\n```\n\nOR\n\nAdd Presenter to your composer.json file:\n\n```js\n\"require-dev\": {\n    \"recca0120/terminal\": \"^1.6.8\"\n}\n```\nNow, run a composer update on the command line from the root of your project:\n\n```\ncomposer update\n```\n\n### Registering the Package\n\nInclude the service provider within `app/config/app.php`. The service povider is needed for the generator artisan command.\n\n```php\n'providers' =\u003e [\n    ...\n    Recca0120\\Terminal\\TerminalServiceProvider::class,\n    ...\n];\n```\n\npublish\n\n```php\nartisan vendor:publish --provider=\"Recca0120\\Terminal\\TerminalServiceProvider\"\n```\n\n\n### URL\n\nhttp://localhost/path/to/terminal\n\n### config\n\n```php\nreturn [\n    'enabled'    =\u003e env('APP_DEBUG'),\n    'whitelists' =\u003e ['127.0.0.1', 'your ip'],\n    'route'     =\u003e [\n        'prefix'     =\u003e 'terminal',\n        'as'         =\u003e 'terminal.',\n        // if you use laravel 5.1, remember to remove web middleware\n        'middleware' =\u003e ['web'],\n        // if you need auth, you need use web and auth middleware\n        // 'middleware' =\u003e ['web', 'auth']\n    ],\n    'commands' =\u003e [\n        \\Recca0120\\Terminal\\Console\\Commands\\Artisan::class,\n        \\Recca0120\\Terminal\\Console\\Commands\\ArtisanTinker::class,\n        \\Recca0120\\Terminal\\Console\\Commands\\Cleanup::class,\n        \\Recca0120\\Terminal\\Console\\Commands\\Find::class,\n        \\Recca0120\\Terminal\\Console\\Commands\\Mysql::class,\n        \\Recca0120\\Terminal\\Console\\Commands\\Tail::class,\n        \\Recca0120\\Terminal\\Console\\Commands\\Vi::class,\n        // add your command\n    ],\n];\n\n```\n\n## Available Commands\n\n* artisan\n* artisan tinker\n* find\n* mysql\n* tail\n* vi\n\n### Find\n\nnot full support, but you can delete file use this function (please check file permission)\n\n```bash\nfind ./vendor -name tests -type d -maxdepth 4 -delete\n```\n\n## Add Your Command\n\n### Add Command Class\n```php\n// src/Console/Commands/Mysql.php\n\nnamespace Recca0120\\Terminal\\Console\\Commands;\n\nuse Illuminate\\Console\\Command;\nuse Illuminate\\Foundation\\Inspiring;\nuse Recca0120\\Terminal\\Contracts\\TerminalCommand;\n\nclass Inspire extends Command implements TerminalCommand\n{\n    /**\n     * The name and signature of the console command.\n     *\n     * @var string\n     */\n    protected $signature = 'inspire';\n\n    /**\n     * The console command description.\n     *\n     * @var string\n     */\n    protected $description = 'Display an inspiring quote';\n\n    /**\n     * Execute the console command.\n     *\n     * @return mixed\n     */\n    public function handle()\n    {\n        $this-\u003ecomment(PHP_EOL.Inspiring::quote().PHP_EOL);\n    }\n}\n```\n\n## ScreenShot\n\n### Available Commands\n```bash\n$ help\n```\n![Available Commands](https://cdn.rawgit.com/recca0120/terminal/master/docs/screenshots/available-commands.png)\n\n### Artisan List\n```bash\n$ artisan\n```\n![Artisan List](https://cdn.rawgit.com/recca0120/terminal/master/docs/screenshots/artisan-list.png)\n\n### Migrate\n```bash\n$ artisan migrate --seed\n```\n![Migrate](https://cdn.rawgit.com/recca0120/terminal/master/docs/screenshots/artisan-migrate.png)\n\n### Artisan Tinker\n```bash\n$ artisan tinker\n```\n![Tinker](https://cdn.rawgit.com/recca0120/terminal/master/docs/screenshots/artisan-tinker.png)\n\n### MySQL\n```bash\n$ mysql\nmysql\u003e select * from users;\n\n# change connection\nmysql\u003e use sqlite;\nmysql\u003e select * from users;\n```\n![MySQL Command](https://cdn.rawgit.com/recca0120/terminal/master/docs/screenshots/mysql-command.png)\n\n### Find Command\n```bash\n$ find ./ -name * -maxdepth 1\n```\n![Find Command](https://cdn.rawgit.com/recca0120/terminal/master/docs/screenshots/find-command.png)\n\n### Find and Delete\n```bash\n$ find ./storage/logs -name * -maxdepth 1 -delete\n```\n![Find and Delete](https://cdn.rawgit.com/recca0120/terminal/master/docs/screenshots/find-and-delete.png)\n\n### Vi\n```bash\n$ vi server.php\n```\n![Vi Command](https://cdn.rawgit.com/recca0120/terminal/master/docs/screenshots/vi-command.png)\n\n![Vi Editor](https://cdn.rawgit.com/recca0120/terminal/master/docs/screenshots/vi-editor.png)\n\n![Vi Save](https://cdn.rawgit.com/recca0120/terminal/master/docs/screenshots/vi-save.png)\n\n### Tail\n```bash\n$ tail\n$ tail --line=1\n$ tail server.php\n$ tail server.php --line 5\n```\n![Tail Command](https://cdn.rawgit.com/recca0120/terminal/master/docs/screenshots/tail-command.png)\n\n\n### Cleanup\n```bash\n$ cleanup\n```\n![Cleanup Command](https://cdn.rawgit.com/recca0120/terminal/master/docs/screenshots/cleanup-command.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frecca0120%2Flaravel-terminal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frecca0120%2Flaravel-terminal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frecca0120%2Flaravel-terminal/lists"}