定制 code-foundation/flow-config-symfony 二次开发

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

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

code-foundation/flow-config-symfony

Composer 安装命令:

composer require code-foundation/flow-config-symfony

包简介

Symfony bundle for code-foundation/flow-config

README 文档

README

Latest Stable Version License codecov CircleCI

Introduction

Flow Config is a key value configuration platform built on top of doctrine. It provides an PHP API for setting configuration at the platform that can be set by an install, and then set for a user, or other entity. Defaults are set in a single location, rather than scattering them through the code.

This package provides a Symfony 4 bundle for installing flow-config.

See https://github.com/code-foundation/flow-config

Installation

composer require code-foundation/flow-config-symfony

Add this bundle to your bundles.php

// app/config/bundles.php
<?php

return [
    CodeFoundation\FlowConfigBundle\FlowConfigBundle::class => ['all' => true],
];

Add a default yaml configuration file for your configuration defaults in flow_config.yaml

Note that the keys are evaluated as strings, the dot separation and prefixes of 'user' and 'system' are convention only, and do not have special meaning to flow config.

// app/config/packages/flow_config.yaml
flow_config:
  defaults:
    user.email.format: html
    user.timezone: UTC
    system.adminuser: admin

The bundle preconfigures the following services. In almost all cases, you want to use flowconfig.cascade

Alias interface class
flowconfig.cascade CompositeConfigRepositoryInterface CodeFoundation\FlowConfig\Repository\CascadeConfig
flowconfig.entity EntityConfigRepositoryInterface CodeFoundation\FlowConfig\Repository\DoctrineEntityConfig
flowconfig.system ConfigRepositoryInterface CodeFoundation\FlowConfig\Repository\DoctrineConfig
flowconfig.ro ReadonlyConfigRepositoryInterface CodeFoundation\FlowConfig\Repository\ReadonlyConfig

Entities passed to setByEntity() and getByEntity() must implement CodeFoundation\FlowConfig\InterfacesEntityIdentifier.

Supported platforms

  • PHP 7.3+
  • Symfony 4.x
  • Doctrine 2.x

Contact

Github: https://github.com/code-foundation/flow-config-symfony

Email: contact@codefoundation.com.au

License

Flow Config and the Symfony bundle is distributed under the MIT license.

code-foundation/flow-config-symfony 适用场景与选型建议

code-foundation/flow-config-symfony 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 481 次下载、GitHub Stars 达 0, 最近一次更新时间为 2019 年 05 月 29 日, 在 PHP 生态内属于活跃度较高的组件。

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

围绕 code-foundation/flow-config-symfony 我们能提供哪些服务?
定制开发 / 二次开发

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-05-29