定制 helhum/env-ts 二次开发

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

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

helhum/env-ts

最新稳定版本:0.3.0

Composer 安装命令:

composer require helhum/env-ts

包简介

Writes environment variables as TypoScript constant file

README 文档

README

env ts Build Status

This is a composer plugin, that writes environment variables to a TypoScript constants file.

This package is the missing link to be able to provide different TypoScript settings for TYPO3 installations in different environments.

configuration options

You configure env ts in the extra section of a composer.json in any package like that:

  "extra": {
      "helhum/env-ts": {
          "files": {
              "path/to/environment.t3s": [
                  "PAGE__ROOT",
                  "PAGE__IMPRINT",
                  "PAGE__CUSTOMER_LOGIN"
              ]
          },
          "prefix": "environment",
          "array-delimiter": "__",
          "lower-camel-case": true
      }
    }

files [array]

Multiple files (path relative to package dir) can be specified as key and which environment variable prefixes should be included. In the above example it would have been enough to specify the prefix PAGE__

prefix [string]

By default environment variables are passed as is to the constants file. But it is possible to specify a prefix for the constants. In the above example environment.page.root is written for env var PAGE__ROOT

The default value is environment

array-delimiter [string]

By default environment variables are passed as is to the constants file. But it is possible to specify an array delimiter of the environment vars to be transformed into an array part of the constants. In the above example environment.page.root is written for env var PAGE__ROOT

The default value is __

lower-camel-case [bool]

Whether the constant name should rather be lower camel cased than totally upper cased. In the above example environment.page.customerLogin is written for env var PAGE__CUSTOMER_LOGIN

The default value is true.

Feedback

Any feedback is appreciated. Please write bug reports, feature request, create pull requests, or just drop me a "thank you" via Twitter or spread the word.

Thank you!

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-11-17

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固