{"id":21674327,"url":"https://github.com/drunomics/drush-phapp-env-mode","last_synced_at":"2026-04-12T16:02:30.786Z","repository":{"id":47667844,"uuid":"171305122","full_name":"drunomics/drush-phapp-env-mode","owner":"drunomics","description":"Provides drush commands for applying the phapp environment mode.","archived":false,"fork":false,"pushed_at":"2022-10-26T10:41:41.000Z","size":9,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"1.x","last_synced_at":"2025-03-16T01:44:55.570Z","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/drunomics.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":"2019-02-18T15:07:39.000Z","updated_at":"2021-10-13T12:56:17.000Z","dependencies_parsed_at":"2022-08-24T14:38:00.753Z","dependency_job_id":null,"html_url":"https://github.com/drunomics/drush-phapp-env-mode","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drunomics%2Fdrush-phapp-env-mode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drunomics%2Fdrush-phapp-env-mode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drunomics%2Fdrush-phapp-env-mode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drunomics%2Fdrush-phapp-env-mode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/drunomics","download_url":"https://codeload.github.com/drunomics/drush-phapp-env-mode/tar.gz/refs/heads/1.x","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244583176,"owners_count":20476233,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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-25T13:44:06.399Z","updated_at":"2025-10-28T04:15:46.905Z","avatar_url":"https://github.com/drunomics.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Phapp environment switch\n\nProvides config and drush commands for applying the Phapp environment mode variable.\n\n## Prerequesites\n\n* A [phapp-cli](https://github.com/drunomics/phapp-cli) enabled project.\n* A working dotenv setup that loads PHAPP environment variables, as existing in \n  [drunomics/drupal-project](https://github.com/drunomics/drupal-project)\n\n## Setup\n\nIn drunomics/drupal-project, all setup steps are taken care already. For others:\n\n\n1. Add the following  to settings.php:\n\n       // Set active split configuration.\n       $split = getenv('PHAPP_ENV_MODE');\n       $config['config_split.config_split.' . $split]['status'] = TRUE;\n\n2. Export some config split configuration that will set further config per environment in your\n   config sync directory, name the split like the environment mode, \"development\", or \"production\".\n   \n   You may use drunomics/dsk-config-split for creating suiting config.\n\n3. Run `phapp:apply-env-mode` during deployments right before `drush cim`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrunomics%2Fdrush-phapp-env-mode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrunomics%2Fdrush-phapp-env-mode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrunomics%2Fdrush-phapp-env-mode/lists"}