friendsofcat/artisan-gui
Composer 安装命令:
composer require friendsofcat/artisan-gui
包简介
Beautiful package for [laravel:artisan] gui for cool kids.
README 文档
README
This package now in very slow development. It's not abandoned, you can still use it.
Currently, started development of the new package. #34
:artisan gui
Simple but yet powerful library for running some artisan commands.
Requirements
- Laravel 8.*
- php ^7.3
Installation
Just install package:
composer require infureal/artisan-gui
Installing 2.0.0@beta
composer require infureal/artisan-gui:2.0.0@beta
Vendor publishing
By default package has predefined config and inline styles and scripts.
Since version 1.4 you can publish vendors like css and js files in vendor/artisan-gui:
php artisan vendor:publish --provider="Infureal\Providers\GuiServiceProvider"
Publish only config:
php artisan vendor:publish --tag="artisan-gui-config"
Publish only styles and scripts:
php artisan vendor:publish --tag="artisan-gui-css-js"
Running command
By default, you can access this page only in local environment. If you wish
you can change local key in config.
Simply go to http://you-domain.com/~artisan and here we go!
Select needed command from list, fill arguments and options/flags and hit run button.
What's new in v2
- Moved to SPA/Vue
- UI changed to more readable (IMHO)
- Implementing search (with new design it's hard to find some command without search)
- Added permission field to config (for more flexible adjustment)
- Added array option fields
Configuration
Default config is:
<?php return [ /* |-------------------------------------------------------------------------- | Middleware list for web routes |-------------------------------------------------------------------------- | | You can pass any middleware for routes, by default it's just [web] group | of middleware. | */ 'middlewares' => [ 'web', // 'auth' ], /* |-------------------------------------------------------------------------- | Route prefix |-------------------------------------------------------------------------- | | Prefix for gui routes. By default url is [/~artisan-gui]. | For your wish you can set it for example 'my-'. So url will be [/my-artisan-gui]. | | Why tilda? It's selected for prevent route names correlation. | */ 'prefix' => '~', /* |-------------------------------------------------------------------------- | Home url |-------------------------------------------------------------------------- | | Where to go when [home] button is pressed | */ 'home' => '/', /* |-------------------------------------------------------------------------- | Only on local |-------------------------------------------------------------------------- | | Flag that preventing showing commands if environment is on production | */ 'local' => true, /* |-------------------------------------------------------------------------- | List of command permissions |-------------------------------------------------------------------------- | | Specify permissions to every single command. Can be a string or array | of permissions | | Example: | 'make:controller' => 'create-controller', | 'make:event' => ['generate-files', 'create-event'], | */ 'permissions' => [ ], /* |-------------------------------------------------------------------------- | List of commands |-------------------------------------------------------------------------- | | List of all default commands that has end of execution. Commands like | [serve] not supported in case of server side behavior of php. | Keys means group. You can shuffle commands as you wish and add your own. | */ 'commands' => [ // ... ] ];
Issues
If have any issue please write me.
friendsofcat/artisan-gui 适用场景与选型建议
friendsofcat/artisan-gui 是一款 基于 Vue 开发的 Composer 扩展包,目前已累计 13.68k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2023 年 03 月 24 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 friendsofcat/artisan-gui 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 friendsofcat/artisan-gui 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 13.68k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 6
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-03-24

