定制 scitotec/url-decode-env-var-processor-bundle 二次开发

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

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

scitotec/url-decode-env-var-processor-bundle

最新稳定版本:v1.0.0

Composer 安装命令:

composer require scitotec/url-decode-env-var-processor-bundle

包简介

Symfony Environment Variable Processor for decoding url-encoded strings

README 文档

README

A Symfony Bundle containing an Environment Variable Processors for decoding url-encoded strings.

Usage

Install and add the bundle:

composer require scitotec/url-decode-env-var-processor-bundle

You can use and combine it with other Environment Variable Processors, e.g.:

# .env
MONGODB_URL="mongodb://db_user:db_pa%24%24word@127.0.0.1:27017/db_name"
# config/packages/mongodb.yaml
mongo_db_bundle:
    clients:
        default:
            hosts:
                - { host: '%env(string:key:host:url:MONGODB_URL)%', port: '%env(int:key:port:url:MONGODB_URL)%' }
            username: '%env(string:url_decode:key:user:url:MONGODB_URL)%' # ⬅️
            password: '%env(string:url_decode:key:pass:url:MONGODB_URL)%' # ⬅️
    connections:
        default:
            database_name: '%env(key:path:url:MONGODB_URL)%'

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-03-14