emir/laravel-webartisan
Larablocks Analysis
emir/laravel-webartisan works with Laravel 10, 11 and 12 (latest release v2.0.0, Feb 16, 2026).
Laravel 5 in earlier releases.
Recommendation checks
Use with careUse with care: meets 1 of 4 checks.
- Latest release doesn't support Laravel 13, the current version
- Released in the last 12 months (Feb 16, 2026)
- 11 downloads a month (needs 10,000)
- 57 GitHub stars (needs 100)
State
Maintained- Last stable release: Feb 16, 2026.
- 1 release in the last 12 months.
- First released: Aug 28, 2015.
- Monthly downloads: 11, down 77% from six months ago.
- 0 open issues on GitHub.
Data from Packagist and GitHub, checked by Larablocks on Dec 1, 2026.
| Install | |
|---|---|
composer require emir/laravel-webartisan |
|
| Latest Version: | v2.0.0 |
| PHP: | ^8.2 |
| Laravel: | 10 · 11 · 12 |
| Older releases: | 5 |
| License: | MIT |
| Last Updated: | Feb 16, 2026 |
| Links: | GitHub · Packagist |
Laravel Webartisan
A beautiful, modern browser-based terminal for running Laravel Artisan commands. Zero dependencies on the frontend, just works.
Features
- Run any Artisan command from your browsers
- Tab completion for command names
- Command history with up/down arrow navigation
- 4 built-in themes: Dark, Light, Monokai, Dracula
- Security: Environment restriction, Gate authorization, command allow/block lists
- Wildcard patterns for command filtering (
migrate:*,db:*) - Artisan install command for quick setup
- Zero configuration needed - works out of the box
- Supports Laravel 10, 11, and 12
Requirements
- PHP 8.2+
- Laravel 10.x, 11.x, or 12.x
Installation
composer require emir/laravel-webartisan --dev
The package uses Laravel's auto-discovery, so the service provider is registered automatically.
Run the install command to publish config and assets:
php artisan webartisan:install
That's it! Visit /webartisan in your browser.
Manual Publishing
If you prefer to publish resources individually:
# Config file
php artisan vendor:publish --tag=webartisan-config
# Frontend assets
php artisan vendor:publish --tag=webartisan-assets
# Blade views (for customization)
php artisan vendor:publish --tag=webartisan-views
Configuration
After publishing, the config file is located at config/webartisan.php:
return [
// Master switch
'enabled' => env('WEBARTISAN_ENABLED', true),
// Only available in these environments
'enabled_environments' => ['local'],
// URL prefix (accessible at /webartisan)
'route_prefix' => env('WEBARTISAN_PREFIX', 'webartisan'),
// Restrict to a specific domain
'domain' => env('WEBARTISAN_DOMAIN', null),
// Route middleware
'middleware' => ['web'],
// Gate-based authorization (see Security section)
'gate' => null,
// Only allow these commands (empty = all except blocked)
'allowed_commands' => [],
// Always block these commands
'blocked_commands' => [
'down', 'up', 'env', 'serve', 'tinker',
'key:generate', 'migrate:fresh', 'migrate:reset',
'db:wipe', 'db:seed', ...
],
// Terminal theme: 'dark', 'light', 'monokai', 'dracula'
'theme' => env('WEBARTISAN_THEME', 'dark'),
];
Usage
Terminal Commands
| Command | Description |
|---|---|
help |
Show available terminal commands |
list |
List all artisan commands with descriptions |
clear |
Clear the terminal screen |
exit / quit |
Leave webartisan |
Type any Artisan command directly:
❯ route:list
❯ migrate:status
❯ make:model Post --migration --factory
❯ config:show database
Keyboard Shortcuts
| Shortcut | Action |
|---|---|
Tab |
Autocomplete command names |
Up / Down |
Navigate command history |
Ctrl+L |
Clear terminal |
Themes
Set the theme in your config or .env file:
WEBARTISAN_THEME=dracula
Available themes: dark (default), light, monokai, dracula.
Security
Webartisan is designed for development use only. Multiple security layers are built in:
1. Environment Restriction (Default)
By default, Webartisan is only available in the local environment:
'enabled_environments' => ['local'],
2. Master Switch
Disable completely via environment variable:
WEBARTISAN_ENABLED=false
3. Gate Authorization
For fine-grained access control, define a gate in your AppServiceProvider:
use Illuminate\Support\Facades\Gate;
Gate::define('viewWebartisan', function ($user) {
return in_array($user->email, [
'admin@example.com',
]);
});
Then enable it in the config:
'gate' => 'viewWebartisan',
'middleware' => ['web', 'auth'], // Add auth middleware
4. Custom Authorization
Use the Webartisan::auth() method in your AppServiceProvider:
use Emir\Webartisan\Webartisan;
Webartisan::auth(function ($request) {
return $request->user()?->isAdmin() ?? false;
});
5. Command Allow/Block Lists
// Only allow specific commands
'allowed_commands' => ['route:list', 'migrate:status', 'queue:*'],
// Block dangerous commands (supports wildcards)
'blocked_commands' => ['db:*', 'migrate:fresh', 'tinker'],
6. Domain Restriction
Restrict to an internal domain:
WEBARTISAN_DOMAIN=admin.myapp.test
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the project
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
Credits
- Emir Karşıyakalı
- Inspired by samdark/yii2-webshell
- Built with jQuery Terminal
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
Alternatives to emir/laravel-webartisan
Cli error handling for console/command-line PHP applications.
A Laravel calendar table database migration and console command.
Laravel package to add command to list all scheduled artisan commands
Laravel Console Spinner is a spinner output for Laravel command line.
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| v2.0.0 | ^8.2 | ^10.0| | MIT | |
| 1.0.0 | >=5.4.0 | ~5.0 | MIT |