2017 © Pedro Peláez
 

library wp-env-heroku-custom-php-constant

Allow PHP constants to be defined through Heroku environment, as long as the environment key starts with FRC_PHP_CONST_ prefix. The prefix gets removed when the constant is set in the PHP side. For example, an environment variable FRC_PHP_CONST_PLL_COOKIE will define the PHP constant PLL_COOKIE within WordPress (with the value coming from the env key)

image

frc/wp-env-heroku-custom-php-constant

Allow PHP constants to be defined through Heroku environment, as long as the environment key starts with FRC_PHP_CONST_ prefix. The prefix gets removed when the constant is set in the PHP side. For example, an environment variable FRC_PHP_CONST_PLL_COOKIE will define the PHP constant PLL_COOKIE within WordPress (with the value coming from the env key)

  • Wednesday, May 3, 2017
  • by pnu
  • Repository
  • 21 Watchers
  • 1 Stars
  • 9,694 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 10 % Grown

The README.md

wp-env-heroku-custom-php-constant

Allow PHP constants to be defined through Heroku environment, as long as the environment key starts with FRC_PHP_CONST_ prefix., (*1)

The prefix gets removed when the constant is set in the PHP side. For example, an environment variable FRC_PHP_CONST_PLL_COOKIE will define the PHP constant PLL_COOKIE within WordPress by using the getenv function (with the value coming from the env key)., (*2)

Getting it to work with PHP standalone server

This works out of the box with Heroku or Heroku local environments, but for the PHP standalone webserver it requires some tweaking in php.ini (for "brewed" PHP, the configuration is in /usr/local/etc/php/<version>/php.ini)., (*3)

Make sure the variables_order directive is set to EGPCS (most likely the default is GPCS)., (*4)

The Versions

03/05 2017

dev-master

9999999-dev

Allow PHP constants to be defined through Heroku environment, as long as the environment key starts with FRC_PHP_CONST_ prefix. The prefix gets removed when the constant is set in the PHP side. For example, an environment variable FRC_PHP_CONST_PLL_COOKIE will define the PHP constant PLL_COOKIE within WordPress (with the value coming from the env key)

  Sources   Download

MIT

The Requires

  • php >=5.3

 

by Josep Roca

wordpress constant heroku

28/03 2017

v1.0.2

1.0.2.0

Allow PHP constants to be defined through Heroku environment, as long as the environment key starts with FRC_PHP_CONST_ prefix. The prefix gets removed when the constant is set in the PHP side. For example, an environment variable FRC_PHP_CONST_PLL_COOKIE will define the PHP constant PLL_COOKIE within WordPress (with the value coming from the env key)

  Sources   Download

MIT

The Requires

  • php >=5.3

 

by Josep Roca

wordpress constant heroku

12/01 2017

v1.0.1

1.0.1.0

Allow PHP constants to be defined through Heroku environment, as long as the environment key starts with FRC_PHP_CONST_ prefix. The prefix gets removed when the constant is set in the PHP side. For example, an environment variable FRC_PHP_CONST_PLL_COOKIE will define the PHP constant PLL_COOKIE within WordPress (with the value coming from the env key)

  Sources   Download

MIT

The Requires

  • php >=5.3

 

by Josep Roca

wordpress constant heroku

12/01 2017

v1.0.0

1.0.0.0

Allow PHP constants to be defined through Heroku environment, as long as the environment key starts with FRC_PHP_CONST_ prefix. The prefix gets removed when the constant is set in the PHP side. For example, an environment variable FRC_PHP_CONST_PLL_COOKIE will define the PHP constant PLL_COOKIE within WordPress (with the value coming from the env key)

  Sources   Download

MIT

The Requires

  • php >=5.3

 

by Josep Roca

wordpress constant heroku