2017 © Pedro Peláez
 

composer-plugin env-ts

Writes environment variables as TypoScript constant file

image

helhum/env-ts

Writes environment variables as TypoScript constant file

  • Tuesday, August 15, 2017
  • by helhum
  • Repository
  • 2 Watchers
  • 4 Stars
  • 6,797 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 1 Open issues
  • 6 Versions
  • 11 % Grown

The README.md

This package is deprecated and will not be maintained any more

env ts Build Status

This is a composer plugin, that writes environment variables to a TypoScript constants file., (*1)

This package is the missing link to be able to provide different TypoScript settings for TYPO3 installations in different environments., (*2)

configuration options

You configure env ts in the extra section of a composer.json in any package like that:, (*3)

  "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__, (*4)

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, (*5)

The default value is environment, (*6)

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, (*7)

The default value is __, (*8)

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, (*9)

The default value is true., (*10)

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., (*11)

Thank you!, (*12)

The Versions

15/08 2017

dev-master

9999999-dev https://github.com/helhum/env-ts

Writes environment variables as TypoScript constant file

  Sources   Download

MIT

The Requires

  • php >=5.5.0
  • composer-plugin-api ^1.0

 

The Development Requires

composer env typoscript

18/11 2016

0.3.0

0.3.0.0 http://github.com/helhum/helhum/env-ts

Writes environment variables as TypoScript constant file

  Sources   Download

MIT

The Requires

  • php >=5.5.0
  • composer-plugin-api ^1.0

 

The Development Requires

composer env typoscript

18/11 2016

0.2.1

0.2.1.0 http://github.com/helhum/helhum/env-ts

Writes environment variables as TypoScript constant file

  Sources   Download

MIT

The Requires

  • php >=5.5.0
  • composer-plugin-api ^1.0

 

The Development Requires

composer env typoscript

17/11 2016

0.2.0

0.2.0.0 http://github.com/helhum/helhum/env-ts

Writes environment variables as TypoScript constant file

  Sources   Download

MIT

The Requires

  • php >=5.5.0
  • composer-plugin-api ^1.0

 

The Development Requires

composer env typoscript

17/11 2016

0.1.1

0.1.1.0 http://github.com/helhum/helhum/env-ts

Writes environment variables as TypoScript constant file

  Sources   Download

MIT

The Requires

  • php >=5.5.0
  • composer-plugin-api ^1.0

 

The Development Requires

composer env typoscript

17/11 2016

0.1.0

0.1.0.0 http://github.com/helhum/helhum/env-ts

Writes environment variables as TypoScript constant file

  Sources   Download

MIT

The Requires

  • php >=5.5.0
  • composer-plugin-api ^1.0

 

The Development Requires

composer env typoscript