{"id":49236370,"url":"https://github.com/moneo/laravel-webartisan","last_synced_at":"2026-04-24T16:07:26.189Z","repository":{"id":36117478,"uuid":"40419913","full_name":"moneo/laravel-webartisan","owner":"moneo","description":"🖥️ A browser-based terminal to run Laravel Artisan commands. Supports Laravel 10/11/12, 4 themes, tab completion, and command filtering.","archived":false,"fork":false,"pushed_at":"2026-02-16T02:23:14.000Z","size":109,"stargazers_count":55,"open_issues_count":0,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2026-04-03T13:29:01.808Z","etag":null,"topics":["artisan","artisan-commands","browser","console","developer-tools","devtools","laravel","laravel-artisan","laravel-package","php","terminal","web-terminal"],"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/moneo.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2015-08-09T00:02:06.000Z","updated_at":"2026-03-04T11:10:55.000Z","dependencies_parsed_at":"2022-09-03T11:02:15.588Z","dependency_job_id":null,"html_url":"https://github.com/moneo/laravel-webartisan","commit_stats":null,"previous_names":["moneo/laravel-webartisan"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/moneo/laravel-webartisan","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moneo%2Flaravel-webartisan","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moneo%2Flaravel-webartisan/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moneo%2Flaravel-webartisan/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moneo%2Flaravel-webartisan/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moneo","download_url":"https://codeload.github.com/moneo/laravel-webartisan/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moneo%2Flaravel-webartisan/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32230448,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T13:21:15.438Z","status":"ssl_error","status_checked_at":"2026-04-24T13:21:15.005Z","response_time":64,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","artisan-commands","browser","console","developer-tools","devtools","laravel","laravel-artisan","laravel-package","php","terminal","web-terminal"],"created_at":"2026-04-24T16:07:25.312Z","updated_at":"2026-04-24T16:07:26.175Z","avatar_url":"https://github.com/moneo.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel Webartisan\n\n[![Tests](https://github.com/emir/laravel-webartisan/actions/workflows/tests.yml/badge.svg)](https://github.com/emir/laravel-webartisan/actions/workflows/tests.yml)\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/emir/laravel-webartisan.svg)](https://packagist.org/packages/emir/laravel-webartisan)\n[![Total Downloads](https://img.shields.io/packagist/dt/emir/laravel-webartisan.svg)](https://packagist.org/packages/emir/laravel-webartisan)\n[![License](https://img.shields.io/packagist/l/emir/laravel-webartisan.svg)](https://packagist.org/packages/emir/laravel-webartisan)\n\nA beautiful, modern browser-based terminal for running **Laravel Artisan** commands. Zero dependencies on the frontend, just works.\n\n## Features\n\n- Run any Artisan command from your browsers\n- **Tab completion** for command names\n- **Command history** with up/down arrow navigation\n- **4 built-in themes**: Dark, Light, Monokai, Dracula\n- **Security**: Environment restriction, Gate authorization, command allow/block lists\n- **Wildcard patterns** for command filtering (`migrate:*`, `db:*`)\n- **Artisan install command** for quick setup\n- **Zero configuration** needed - works out of the box\n- Supports **Laravel 10, 11, and 12**\n\n## Requirements\n\n- PHP 8.2+\n- Laravel 10.x, 11.x, or 12.x\n\n## Installation\n\n```bash\ncomposer require emir/laravel-webartisan --dev\n```\n\nThe package uses **Laravel's auto-discovery**, so the service provider is registered automatically.\n\nRun the install command to publish config and assets:\n\n```bash\nphp artisan webartisan:install\n```\n\nThat's it! Visit `/webartisan` in your browser.\n\n### Manual Publishing\n\nIf you prefer to publish resources individually:\n\n```bash\n# Config file\nphp artisan vendor:publish --tag=webartisan-config\n\n# Frontend assets\nphp artisan vendor:publish --tag=webartisan-assets\n\n# Blade views (for customization)\nphp artisan vendor:publish --tag=webartisan-views\n```\n\n## Configuration\n\nAfter publishing, the config file is located at `config/webartisan.php`:\n\n```php\nreturn [\n    // Master switch\n    'enabled' =\u003e env('WEBARTISAN_ENABLED', true),\n\n    // Only available in these environments\n    'enabled_environments' =\u003e ['local'],\n\n    // URL prefix (accessible at /webartisan)\n    'route_prefix' =\u003e env('WEBARTISAN_PREFIX', 'webartisan'),\n\n    // Restrict to a specific domain\n    'domain' =\u003e env('WEBARTISAN_DOMAIN', null),\n\n    // Route middleware\n    'middleware' =\u003e ['web'],\n\n    // Gate-based authorization (see Security section)\n    'gate' =\u003e null,\n\n    // Only allow these commands (empty = all except blocked)\n    'allowed_commands' =\u003e [],\n\n    // Always block these commands\n    'blocked_commands' =\u003e [\n        'down', 'up', 'env', 'serve', 'tinker',\n        'key:generate', 'migrate:fresh', 'migrate:reset',\n        'db:wipe', 'db:seed', ...\n    ],\n\n    // Terminal theme: 'dark', 'light', 'monokai', 'dracula'\n    'theme' =\u003e env('WEBARTISAN_THEME', 'dark'),\n];\n```\n\n## Usage\n\n### Terminal Commands\n\n| Command | Description |\n|---------|-------------|\n| `help` | Show available terminal commands |\n| `list` | List all artisan commands with descriptions |\n| `clear` | Clear the terminal screen |\n| `exit` / `quit` | Leave webartisan |\n\nType any Artisan command directly:\n\n```\n❯ route:list\n❯ migrate:status\n❯ make:model Post --migration --factory\n❯ config:show database\n```\n\n### Keyboard Shortcuts\n\n| Shortcut | Action |\n|----------|--------|\n| `Tab` | Autocomplete command names |\n| `Up` / `Down` | Navigate command history |\n| `Ctrl+L` | Clear terminal |\n\n## Themes\n\nSet the theme in your config or `.env` file:\n\n```env\nWEBARTISAN_THEME=dracula\n```\n\nAvailable themes: `dark` (default), `light`, `monokai`, `dracula`.\n\n## Security\n\nWebartisan is designed for **development use only**. Multiple security layers are built in:\n\n### 1. Environment Restriction (Default)\n\nBy default, Webartisan is only available in the `local` environment:\n\n```php\n'enabled_environments' =\u003e ['local'],\n```\n\n### 2. Master Switch\n\nDisable completely via environment variable:\n\n```env\nWEBARTISAN_ENABLED=false\n```\n\n### 3. Gate Authorization\n\nFor fine-grained access control, define a gate in your `AppServiceProvider`:\n\n```php\nuse Illuminate\\Support\\Facades\\Gate;\n\nGate::define('viewWebartisan', function ($user) {\n    return in_array($user-\u003eemail, [\n        'admin@example.com',\n    ]);\n});\n```\n\nThen enable it in the config:\n\n```php\n'gate' =\u003e 'viewWebartisan',\n'middleware' =\u003e ['web', 'auth'], // Add auth middleware\n```\n\n### 4. Custom Authorization\n\nUse the `Webartisan::auth()` method in your `AppServiceProvider`:\n\n```php\nuse Emir\\Webartisan\\Webartisan;\n\nWebartisan::auth(function ($request) {\n    return $request-\u003euser()?-\u003eisAdmin() ?? false;\n});\n```\n\n### 5. Command Allow/Block Lists\n\n```php\n// Only allow specific commands\n'allowed_commands' =\u003e ['route:list', 'migrate:status', 'queue:*'],\n\n// Block dangerous commands (supports wildcards)\n'blocked_commands' =\u003e ['db:*', 'migrate:fresh', 'tinker'],\n```\n\n### 6. Domain Restriction\n\nRestrict to an internal domain:\n\n```env\nWEBARTISAN_DOMAIN=admin.myapp.test\n```\n\n## Testing\n\n```bash\ncomposer test\n```\n\n## Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n1. Fork the project\n2. Create your feature branch (`git checkout -b feature/amazing-feature`)\n3. Commit your changes (`git commit -m 'Add amazing feature'`)\n4. Push to the branch (`git push origin feature/amazing-feature`)\n5. Open a Pull Request\n\n## Credits\n\n- [Emir Karşıyakalı](https://github.com/emir)\n- Inspired by [samdark/yii2-webshell](https://github.com/samdark/yii2-webshell)\n- Built with [jQuery Terminal](https://terminal.jcubic.pl/)\n- [All Contributors](../../contributors)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoneo%2Flaravel-webartisan","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoneo%2Flaravel-webartisan","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoneo%2Flaravel-webartisan/lists"}