PHPackages                             frc/wp-env-heroku-custom-php-constant - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. frc/wp-env-heroku-custom-php-constant

ActiveLibrary

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)

v1.0.2(9y ago)144.6k1MITPHPPHP &gt;=5.3

Since Jan 12Pushed 7y ago18 watchersCompare

[ Source](https://github.com/frc/wp-env-heroku-custom-php-constant)[ Packagist](https://packagist.org/packages/frc/wp-env-heroku-custom-php-constant)[ RSS](/packages/frc-wp-env-heroku-custom-php-constant/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)DependenciesVersions (5)Used By (1)

wp-env-heroku-custom-php-constant
=================================

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

Getting it to work with PHP standalone server
---------------------------------------------

[](#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//php.ini`).

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

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 80% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~37 days

Total

3

Last Release

3339d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f37bb0cce496315b88402d88805356d550e0df3a3882179ed845afe73af926db?d=identicon)[pnu](/maintainers/pnu)

![](https://www.gravatar.com/avatar/5c19a1875e27146a4e05c529c80166d30546ddedbf88575ff328cd8e8174f7e8?d=identicon)[josep.roca](/maintainers/josep.roca)

![](https://www.gravatar.com/avatar/bdb78c0c4389542f31d434a239df16e56e79f57a066fa3e331b521407f76bbad?d=identicon)[frcade](/maintainers/frcade)

---

Top Contributors

[![josepfrantic](https://avatars.githubusercontent.com/u/10528387?v=4)](https://github.com/josepfrantic "josepfrantic (4 commits)")[![JanneAalto](https://avatars.githubusercontent.com/u/6008144?v=4)](https://github.com/JanneAalto "JanneAalto (1 commits)")

---

Tags

wordpressherokuconstant

### Embed Badge

![Health badge](/badges/frc-wp-env-heroku-custom-php-constant/health.svg)

```
[![Health](https://phpackages.com/badges/frc-wp-env-heroku-custom-php-constant/health.svg)](https://phpackages.com/packages/frc-wp-env-heroku-custom-php-constant)
```

###  Alternatives

[roots/wordpress

WordPress is open source software you can use to create a beautiful website, blog, or app.

19116.9M258](/packages/roots-wordpress)[aristath/kirki

Extending the WordPress customizer

1.3k73.0k4](/packages/aristath-kirki)[wpreadme2markdown/wpreadme2markdown

Convert WordPress Plugin readme.txt to Markdown

9564.6k4](/packages/wpreadme2markdown-wpreadme2markdown)[wpstarter/framework

The WpStarter Framework - Laravel Framework for WordPress

1810.1k4](/packages/wpstarter-framework)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
