定制 bkstar123/bkscms-admin-panel 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

bkstar123/bkscms-admin-panel

Composer 安装命令:

composer require bkstar123/bkscms-admin-panel

包简介

A bkstar123/bkscms's package for authentication and authorization of admin users

README 文档

README

A bkstar123/bkscms's package adding an admin panel (with authentication & authorization features) for a BKSCMS project

For creating a BKSCMS project, run the following command:
composer create-project --prefer-dist bkstar123/bkscms <your-project>

1. Requirement

It is recommended to install this package with PHP version 7.1.3+ and Laravel Framework version 5.6+

2. Installation

composer require bkstar123/bkscms-admin-panel

Then, publish the package's configuration file (you do not need to do it if you run php artian bkscms:install to install the BKSCMS project):
php artisan vendor:publish --provider=Bkstar123\BksCMS\AdminPanel\Providers\AdminPanelServiceProvider

3. Usage

The package offers an artisan command php artisan bkscms:initAuth --scope=<permissions|all>

All the following steps are not required if you run php artian bkscms:install to install the BKSCMS project.

  • Create database tables
    php artisan migrate
  • Seed data to roles, admins, permissions tables and do other arrangements
    php artisan bkscms:initAuth --scope=all
  • Create full-text index for roles, permissions, admins tables
php artisan mysql-search:init Bkstar123\BksCMS\AdminPanel\Admin
php artisan mysql-search:init Bkstar123\BksCMS\AdminPanel\Role
php artisan mysql-search:init Bkstar123\BksCMS\AdminPanel\Permission

It will create two users superadmin & administrator with passwords superadmin1@ and administrator1@ respectively. You can use these credentials to login and create your own users (you must assign superadmins role to at least one user). Finally, do not forget to remove/disable the default superadmin & administrator users for security reason before rolling out to production environment.

Later, when you add more permissions to permissions key in config/bkstar123_bkscms_adminpanel.php, you can just run php artisan bkscms:initAuth --scope=permissions to re-initialize the permissions table

In the controller, import & use the trait Bkstar123\BksCMS\AdminPanel\Traits\AuthorizationShield, then you can place a call to $this->capabilityCheck(<action>, <resource>) in every controller action that need to perform authorization check.

Note
The package provides bkscms-auth & bkscms-guest middleware to replace auth & guest respectively for all CMS routes (i.e under the path /cms/*)

bkstar123/bkscms-admin-panel 适用场景与选型建议

bkstar123/bkscms-admin-panel 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 63 次下载、GitHub Stars 达 1, 最近一次更新时间为 2019 年 11 月 09 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「admin」 「authorization」 「Authentication」 「laravel」 「admin-auth」 「admin-authentication」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 bkstar123/bkscms-admin-panel 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 bkstar123/bkscms-admin-panel 我们能提供哪些服务?
定制开发 / 二次开发

基于 bkstar123/bkscms-admin-panel 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 63
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 9
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-11-09