{"id":19252912,"url":"https://github.com/frc/wp-env-heroku-custom-php-constant","last_synced_at":"2026-06-14T18:33:10.038Z","repository":{"id":62507135,"uuid":"78739179","full_name":"frc/wp-env-heroku-custom-php-constant","owner":"frc","description":null,"archived":false,"fork":false,"pushed_at":"2018-11-14T09:25:19.000Z","size":3,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":18,"default_branch":"master","last_synced_at":"2025-08-09T08:57:14.301Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/frc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-01-12T11:33:06.000Z","updated_at":"2017-01-13T13:33:58.000Z","dependencies_parsed_at":"2022-11-02T12:45:51.353Z","dependency_job_id":null,"html_url":"https://github.com/frc/wp-env-heroku-custom-php-constant","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/frc/wp-env-heroku-custom-php-constant","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frc%2Fwp-env-heroku-custom-php-constant","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frc%2Fwp-env-heroku-custom-php-constant/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frc%2Fwp-env-heroku-custom-php-constant/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frc%2Fwp-env-heroku-custom-php-constant/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/frc","download_url":"https://codeload.github.com/frc/wp-env-heroku-custom-php-constant/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frc%2Fwp-env-heroku-custom-php-constant/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34333806,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-14T02:00:07.365Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T18:28:50.430Z","updated_at":"2026-06-14T18:33:10.021Z","avatar_url":"https://github.com/frc.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wp-env-heroku-custom-php-constant\n\nAllow PHP constants to be defined through Heroku environment, as long as the environment key starts with FRC_PHP_CONST_ prefix.\n\nThe 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).\n\n## Getting it to work with PHP standalone server\n\nThis 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/\u003cversion\u003e/php.ini`).\n\nMake sure the `variables_order` directive is set to `EGPCS` (most likely the default is `GPCS`).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrc%2Fwp-env-heroku-custom-php-constant","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffrc%2Fwp-env-heroku-custom-php-constant","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrc%2Fwp-env-heroku-custom-php-constant/lists"}