maxime-rainville/recipe-admin 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

maxime-rainville/recipe-admin

Composer 安装命令:

composer require maxime-rainville/recipe-admin

包简介

Starting point for a admin only SilverStripe project.

README 文档

README

recipe-admin is a SilverStripe recipe designed for "portal" projects that only need to use the "administration" part of SilverStripe to manage DataObjects:

What does the recipe do?

  • Strips out CMS functionality,
  • Set the administration area as the default route,
  • Add a generic login screen so you don't have style your own,
  • Showcase generic DataObject that you can be copied and adapted for your purpose,
  • Showcase how to set up default groups,
  • Showcase a generic report.

Screen shot of recipe-admin

View a short video of a recipe-admin project

Getting started

Add recipe-admin to your composer file.

# If starting a brand new project
composer create-project maxime-rainville/recipe-admin your-project-folder

# If you already have a composer file
composer require maxime-rainville/recipe-admin

Rename .env-sample to .env and adjust the settings according to your environment.

From here, just follow the normal set up steps for a SilverStripe project.

What to do next?

The recipe comes with some simple examples to help you get started quickly. But you will need to tweak the example code to your use case.

Set up your DataObjects

Two basic DataObjects are included in the basic recipe: Dog and Breed. Both of them come with sample code illustrating how to:

  • define basic relations
  • set basic validation rules
  • define basic permissions.

Copy or rename these DataObject to suit your use case.

Define an ModelAdmin controller

Dog and Breed can be managed via the "DogAdmin" ModelAdmin. Rename DogAdmin and adjust it to reference your own DataObjects.

Set the default area in the Model

Recipe-admin is configured to have a default administration area. This will be the first screen your users will see after login into your portal.

By default this points to DogAdmin. Update app/_config/routes.yml to point to your own ModelAdmin

SilverStripe\Admin\AdminRootController:
  url_base: 'a'
-  default_panel: DogAdmin
+  default_panel: YourCustomAdmin

Define some default data

recipe-admin comes with some default records. This pre-populates your project with some data with your first dev/build. When setting up a new environment, this allows you to quickly get started without having to load a database snapshot.

Adjust app/_config/default-records.yml to reflect your own DataObjects.

Define some default groups

recipe-admin ships with a simple DataExtension showing you how do define default groups. Adjust the groups and permission define app/_config/default-records.yml to reflect your own DataObjects.

Create some reports for your users

BreedReport shows you how you can create a custom report to allow your user to get refine view of their data.

If your users don't need this data, simply delete BreedReport and the "Report" panel will be hidden.

maxime-rainville/recipe-admin 适用场景与选型建议

maxime-rainville/recipe-admin 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 24 次下载、GitHub Stars 达 2, 最近一次更新时间为 2019 年 07 月 08 日, 在 PHP 生态内属于活跃度较高的组件。

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

围绕 maxime-rainville/recipe-admin 我们能提供哪些服务?
定制开发 / 二次开发

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2019-07-08