定制 oliverde8/comfy-bundle 二次开发

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

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

oliverde8/comfy-bundle

最新稳定版本:1.3.0

Composer 安装命令:

composer require oliverde8/comfy-bundle

包简介

Add administrable configuration that users/admin can edit on the run.

README 文档

README

Build Status Scrutinizer Code Quality Code Coverage Donate Latest Stable Version Total Downloads Latest Unstable Version License

This bundle introduces all the necessary logic in order to save administrable configuration in the database or in any other storage solution.

Configurations are stored by paths which allows them to be grouped when creating an interface to edit them. See Easy Admin integration here

It also allows saving multiple values per config key, these are called scopes. By default there is a default scope and a scope per locale, locale scopes inherits values of the default scope. Scopes have levels. For example "French for France" inherits values from "French". So both "French for Canada" and "French for France" can be configured at once.

Each config is a unique service that can be autowired; yes Comfy loves:heart: symfony 4.4+ with it's autowiring.

Usage

Install Bundle

composer require oliverde/comfy-bundle

If you want to use doctrine for storage you will need to install it, if not please refeer to the alternative storage section.

See our getting started guide.

Advance usages

Creating your own scope inheritance tree

See here

Creating your own config type

See here

Validating configs values

To add custom validations you need to create your own config type.

Alternative storage solution

🚧

TODO

Low priority

  • Add more basic config types.
    • Ideas? Create a ticket.
  • Add caching per scope. Do this by creating a layered storage so that when we read we first read on the cacheStorage then the other solution.
  • Add documentation.
    • How not to use doctrine but alternative solution. This is supported by the code but not documented.
    • How to create an admin interface using the servies & forms & permission voters.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-02-23