toneflix-code/laravel-visualconsole
Composer 安装命令:
composer require toneflix-code/laravel-visualconsole
包简介
A Laravel package to help with frequent artisan tasks and more.
README 文档
README
Laravel Visual Console is designed to give you a visual experience of your most frequent Laravel processes, artisan commands, and system management. This could come in really handy if you build and manage APIs that don't require you to build any additional user interfaces.

Installation
You can install the package via composer:
composer require toneflix-code/laravel-visualconsole
Post Installation
After installation you must publish the package assets by running:
php artisan vendor:publish --tag=visualconsole-assets
Optionally you can publish the configuration file by running:
php artisan vendor:publish --tag=visualconsole-config
You can also optionally publish the views by running:
php artisan vendor:publish --tag=visualconsole-view
If needed, you can also publish the routes by running:
php artisan vendor:publish --tag=visualconsole-routes
Getting Google Keys
This package depends on google drive for backup storage, although you can use any storage your spp is configured to run with.
Please follow Google Docs to obtain your client ID, client secret & refresh token which is required to get the system running.
In addition you can also check these easy-to-follow tutorial by @ivanvermeyen
Usage
After installation, the package is ready to use, simply point your browser to http://youdomainexample.com/system/console/login.
The default setup is configured to work with your current authentication model.
Authorization
By default, the package will check the privileges field of the current authentication model [User] for if the authenticating user has the admin Privilege assuming the value of the field is a numeric list of attributes/privileges, if it fails to confirm it checks if the value of the field is exactly admin, once confirmed the user is authenticated.
If you which to change the behaviour you should check the Post Installation section for how to publish the config and modify it to suit your requirements, you can also set the permission_field and permission_value config values to null in order to disable this behaviour. Disabling the feature implies that anyone with log in access can also access the visual console.
Custom Commands
The library also exposes a few custom Artisan commands to help you with certain everyday tasks, even though these commandsa are accessible through the UI, they are still Artisan commands and are as much accessible through your terminal.
-
system:deploy: Automatically deploys the latest code from the git repository associated with your project. Before you run this command, make sure you have set up a git repository and have added a remote named "origin".-
ARGUMENTS
--branch=: The branch to deploy, the default ismain.--force: Force the deployment.--dev: Run in development mode (This will prevent composer from removing dev dependencies)--log-level=[level]: How log the output should handled.0= none,1= console only,2= file and console.--mock-php: If your server is on a shared hosting which uses a different version on the CLI less that php 8.1, this option allows you to use a different version of php of your choice, publish the config file and update thephp_binoption or setVISUALCONSOLE_PHP_BINARYoption on your .env file (Make sure the path is an abosolute path to your prefered php binary). You can also set thecomposeroption or set theVISUALCONSOLE_COMPOSERoption on your .env.--composer=[command]Allows you to run a custom composer command, this is useful if you want to run a composer command before the deployment. E.g.--composer="install --no-dev". For now this option only supports theinstallandupdatecommands only.--ensure-commit: Make sure there are no uncommitted changes before deployment.
Example:
php artisan system:deploy --branch=main
-
-
system:control: Helps you perforom common system tasks like backup, backup restore and system reset.-
PARAMETERS
actionThe specific action to carryout [reset, backup, restore]
-
ARGUMENTS
--w|wizard: Let the wizard guide you through the whole process.--r|restore: Restore the system to the last backup or provide the--signatureoption to restore to a known backup signature.--s|signature=: Set the backup signature value to restore a particular known backup. E.g.2022-04-26_16-05-34.--b|backup: During system reset, do a complete system backup before the reset.--d|delete: If the restore option is set, this option will delete the backup files after successfull a restore.--f|force: Force the action to execute.
Example:
php artisan system:control backup --w|wizard
-
-
system:key-gen: Generate a webhook secret key for the application, you can use this key for authorizing github or any other services where you need access tho the artisan webhook interface.Example:
php artisan system:key-gen
Artisan Webhook Interface
The Artisan Webhook Interface allows you to remotely run any of the given artisan commands listed above where user authentication is not possible.
The interface can be accessed like this: http://youdomainexample.com/system/webhooks/artisan/[command [--param1] [--param2]].
When accessing this endpoint, you will have to pass the HMAC hex digest of the request body, generated using the SHA-1 or SHA-256 hash function and the secret as the HMAC key through the X-Hub-Signature header for Github or the X-Signature for other services, provided for convinience purpose.
Queues and Failed Jobs
The library currently supports the database connection for queued jobs.
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security-related issues, please email code@toneflix.com.ng instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
toneflix-code/laravel-visualconsole 适用场景与选型建议
toneflix-code/laravel-visualconsole 是一款 基于 Blade 开发的 Composer 扩展包,目前已累计 54 次下载、GitHub Stars 达 2, 最近一次更新时间为 2022 年 10 月 04 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「toneflix-code」 「laravel-visualconsole」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 toneflix-code/laravel-visualconsole 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 toneflix-code/laravel-visualconsole 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 toneflix-code/laravel-visualconsole 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A Laravel API wrapper for Cutt.ly API.
Laravel Fileable exposes methods that make handling file upload with Laravel filesystem even easier, it also exposes a trait that automatically handles file uploads for you.
A PHP wrapper for Cutt.ly.
Laravel Fileable exposes methods that make handling file upload with Laravel filesystem even easier, it also exposes a trait that automatically handles file uploads for you.
Laravel OP is a simple fork of Laravel that provides a set of tools to help you build your Laravel application faster and easier. It is a collection of useful classes, traits, and functions that I have found useful in my own projects. It is a work in progress and I will be adding more features as I
A Laravel package to add social interactions like likes, reactions, votes, saving/bookmarks e.t.c to your models.
统计信息
- 总下载量: 54
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 24
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-10-04