frc/wp-env-heroku-custom-php-constant 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

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

最新稳定版本:v1.0.2

Composer 安装命令:

composer require 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 with

README 文档

README

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 by using the getenv function (with the value coming from the env key).

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).

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

统计信息

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

GitHub 信息

  • Stars: 1
  • Watchers: 18
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-01-12

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固