renus/parameters-editor
Composer 安装命令:
composer require renus/parameters-editor
包简介
Symfony 2 bundle to edit parameters.yml symfony file
README 文档
README
Symfony 2 bundle to edit parameters.yml symfony 2 or symfony 3 file
To use RenusParametersEditorBundle in your project add it via composer
Installation
installation
- Add this bundle to your project with composer:
composer.phar require renus/parameters-editor:1.0.x-dev
- Register the bundle
<?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new \Renus\ParametersEditorBundle\RenusParametersEditorBundle(), ); // ... } #configuration ##application twitter first you must create an twitter application on https://apps.twitter.com/ ,and create a token (read permission) ##parameters ### 1.config file you can configure the bundle parameters in app/config/config.yml, the parameters can be added like this : ```yml # app/config/config.yml renus_parameters_editor: all_parameters: false default_keyword: editable
-
all_parameters: it's a boolean (default false) when it is true, you can see all the parameters in parameters.yml file else you see only the parameters who are prefixed by the "keyword" (default: editable, ex: editable.email).
-
default_keyword: the keyword who prefix the paramters who can be edit (default: editable)
2. routing file
# app/config/routing.yml renus_parameters_editor: resource: "@RenusParametersEditorBundle/Resources/config/routing.yml" prefix: /administration/config/editor/
You must protect this url with your firewall
#Usage
##twig usage:
just add this render command in your twig template :
{% render(path('renus_parameters_editor_homepage')) %}
renus/parameters-editor 适用场景与选型建议
renus/parameters-editor 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1.32k 次下载、GitHub Stars 达 1, 最近一次更新时间为 2016 年 08 月 21 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「Symfony 2 parameters parameters.yml editor config edit」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 renus/parameters-editor 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 renus/parameters-editor 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 renus/parameters-editor 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Composer script handling your ignored parameter file
The bundle for easy using json-rpc api on your project
Array wrapper that eases the retrieval of values. Has parameters, options and settings and traits for inclusion in other libraries.
Adds request-parameter validation to the SLIM 3.x PHP framework
Bundle Symfony DaplosBundle
Inputs put in same way - basic interfaces
统计信息
- 总下载量: 1.32k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 14
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-08-21