sabiowebcom/artisan-gui-package

Laravel package for executing Artisan commands through a web GUI

Installs: 0

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/sabiowebcom/artisan-gui-package

dev-main 2025-11-28 14:39 UTC

This package is auto-updated.

Last update: 2025-12-28 14:51:49 UTC


README

A modern, secure, and beautifully designed web interface for running Laravel Artisan commands.

A sleek dashboard that transforms php artisan into a safe, team-friendly, role-based graphical interface โ€” without exposing server access.

## โœจ Key Features

### ๐ŸŽจ Modern UI/UX
- Fully responsive design  
- Smooth **dark & light mode**  
- Clean TailwindCSS-powered layout  
- Real-time command output streaming  

### ๐Ÿ”’ Enterprise Security
- Full **command whitelisting**
- **RBAC role-based permissions**
- CSRF protection  
- Complete audit trail for all executed commands  

### โšก Real-Time Execution
- Live command output  
- Async execution via AJAX  
- Execution statuses (running / success / failed)  
- Detailed error handling  

### ๐Ÿ“œ Audit Logging
- Complete command history  
- Searchable & filterable logs  
- User-based trails  
- Downloadable log files  

### ๐ŸŒ Internationalization (i18n)
- Full multi-language support  
- English as the base language  
- Auto-translation support (Google/DeepL)  
- Easy language expansion  

### ๐Ÿงฉ Modular Laravel Package
- Publishable config, views, migrations, and lang files  
- Customizable and extendable  
- Auto-discovered Service Provider  

---

## ๐Ÿ“ฆ Requirements

| Component   | Version |
| ----------- | ------- |
| PHP         | 8.2+    |
| Laravel     | 11.x+   |
| Database    | Any supported by Laravel |

---

## ๐Ÿ›  Installation

### 1๏ธโƒฃ Install via Composer
```bash
composer require sabiowebcom/artisan-gui-package

2๏ธโƒฃ Publish Package Assets

php artisan vendor:publish --tag=artisan-gui-config
php artisan vendor:publish --tag=artisan-gui-migrations
php artisan vendor:publish --tag=artisan-gui-views
php artisan vendor:publish --tag=artisan-gui-lang

3๏ธโƒฃ Run Migrations

php artisan migrate

โš™๏ธ Configuration

.env Variables

ARTISAN_GUI_PREFIX=artisan-gui
ARTISAN_GUI_LOCALE=en

ARTISAN_GUI_AUTO_TRANSLATE=false
ARTISAN_GUI_TRANSLATION_PROVIDER=google
ARTISAN_GUI_TRANSLATION_API_KEY=your-api-key
ARTISAN_GUI_TARGET_LANGUAGES=fa,ar,es,fr,de

config/artisan-gui.php

Fully customizable settings:

  • route prefix
  • allowed commands
  • allowed user roles
  • max execution time
  • log storage path
  • i18n settings

๐Ÿ”ง Usage

Access the Dashboard

http://your-app.test/artisan-gui

Main Pages

  • /artisan-gui โ€” Dashboard
  • /artisan-gui/run โ€” Execute commands
  • /artisan-gui/catalog โ€” Browse commands
  • /artisan-gui/history โ€” Execution history
  • /artisan-gui/about โ€” Package info

Running Commands

  1. Open Run Command
  2. Select an Artisan command
  3. Enter parameters (optional)
  4. Run
  5. Watch real-time output

๐Ÿ“ก API Endpoints

Execute Command

POST /artisan-gui/api/execute

List Commands

GET /artisan-gui/api/commands

Run Details

GET /artisan-gui/api/runs/{id}

Download Log

GET /artisan-gui/api/runs/{id}/log

๐ŸŒ Localization

Set Locale

ARTISAN_GUI_LOCALE=fa

Or:

/artisan-gui?lang=fa

Auto-Translate

php artisan artisan-gui:translate

๐ŸŽจ Dark Mode

  • Light & Dark themes
  • Auto-detect system theme
  • Smooth transitions
  • Saves user preference

๐Ÿ”’ Security

  • Command whitelisting
  • Role-based access control
  • CSRF protection
  • Safe validation & exception handling

๐ŸŽจ Customization

Override Views

php artisan vendor:publish --tag=artisan-gui-views

Override Lang Files

php artisan vendor:publish --tag=artisan-gui-lang

Change Route Prefix

ARTISAN_GUI_PREFIX=admin/artisan

๐Ÿงช Testing

composer test

or:

./vendor/bin/phpunit

๐Ÿ“š Project Structure

artisan-gui-package/
โ”œโ”€โ”€ config/
โ”œโ”€โ”€ database/
โ”œโ”€โ”€ resources/
โ”‚   โ”œโ”€โ”€ lang/
โ”‚   โ””โ”€โ”€ views/
โ”œโ”€โ”€ routes/
โ”œโ”€โ”€ src/
โ””โ”€โ”€ tests/

๐Ÿค Contributing

  1. Fork
  2. Create branch
  3. Follow PSR-12
  4. Write tests
  5. Submit PR

๐Ÿ“ Changelog

See CHANGELOG.md.

๐Ÿชช License

MIT License

โญ Support

  • Star the repo
  • Report issues
  • Suggest features
  • Improve docs

๐Ÿ™ Acknowledgments Built with โค๏ธ by Sabiowebcom Team Author: Ramezanzadeh Team: Sabioweb Site : Sabioweb.com