{"id":13448093,"url":"https://github.com/roots/wp-stage-switcher","last_synced_at":"2025-05-16T02:09:46.666Z","repository":{"id":13172779,"uuid":"15855911","full_name":"roots/wp-stage-switcher","owner":"roots","description":"WordPress plugin that allows you to switch between different environments from the admin bar","archived":false,"fork":false,"pushed_at":"2023-05-17T18:40:21.000Z","size":38,"stargazers_count":365,"open_issues_count":3,"forks_count":43,"subscribers_count":27,"default_branch":"master","last_synced_at":"2025-05-15T13:01:06.705Z","etag":null,"topics":["bedrock","wordpress","wordpress-plugin"],"latest_commit_sha":null,"homepage":"https://roots.io/plugins/stage-switcher/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/roots.png","metadata":{"funding":{"github":"roots"},"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-01-13T02:28:16.000Z","updated_at":"2025-03-14T03:57:37.000Z","dependencies_parsed_at":"2024-06-18T12:33:39.261Z","dependency_job_id":"49b67853-135b-4fbd-b05e-abb13d3a83be","html_url":"https://github.com/roots/wp-stage-switcher","commit_stats":{"total_commits":32,"total_committers":12,"mean_commits":"2.6666666666666665","dds":0.59375,"last_synced_commit":"48f0deee6b0df869054ac5a2c30e08dd13995aa6"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roots%2Fwp-stage-switcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roots%2Fwp-stage-switcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roots%2Fwp-stage-switcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roots%2Fwp-stage-switcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/roots","download_url":"https://codeload.github.com/roots/wp-stage-switcher/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254453667,"owners_count":22073618,"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":["bedrock","wordpress","wordpress-plugin"],"created_at":"2024-07-31T05:01:35.403Z","updated_at":"2025-05-16T02:09:46.612Z","avatar_url":"https://github.com/roots.png","language":"PHP","funding_links":["https://github.com/sponsors/roots"],"categories":["PHP"],"sub_categories":[],"readme":"# WordPress Stage Switcher\n[![Packagist](https://img.shields.io/packagist/v/roots/wp-stage-switcher.svg?style=flat-square)](https://packagist.org/packages/roots/wp-stage-switcher)\n[![Packagist Downloads](https://img.shields.io/packagist/dt/roots/wp-stage-switcher.svg?style=flat-square)](https://packagist.org/packages/roots/wp-stage-switcher)\n\nA WordPress plugin that allows you to switch between different environments from the admin bar.\n\n![WordPress Stage Switcher](https://cdn.roots.io/app/uploads/plugin-stage-switcher.png)\n\n## Requirements\n\nYou'll need to have `ENVIRONMENTS` and `WP_ENV` defined in your WordPress config.\n\nThe `ENVIRONMENTS` constant must be a serialized array of `'environment' =\u003e 'url'` elements:\n\n```php\n$envs = [\n  'development' =\u003e 'http://example.dev',\n  'staging'     =\u003e 'http://staging.example.com',\n  'production'  =\u003e 'http://example.com'\n];\ndefine('ENVIRONMENTS', serialize($envs));\n```\n\nNote: the `serialize()` call is not needed on PHP 7.0 or newer.\n\n`WP_ENV` must be defined as the current environment:\n\n```php\ndefine('WP_ENV', 'development');\n```\n\nIf you use [Bedrock](https://github.com/roots/bedrock), `WP_ENV` is already defined in the config.\n\n## Installation\n\nThis plugin must be installed via Composer. Add wp-stage-switcher to your project's dependencies:\n\n```sh\ncomposer require roots/wp-stage-switcher\n```\n\nOr manually add it to your `composer.json`:\n\n```json\n\"require\": {\n  \"php\": \"\u003e=7.1\",\n  \"roots/wordpress\": \"5.1.1\",\n  \"roots/wp-stage-switcher\": \"~2.1\"\n}\n```\n\n## Support\n\nUse the [Roots Discourse](http://discourse.roots.io/) to ask questions and get support.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froots%2Fwp-stage-switcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froots%2Fwp-stage-switcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froots%2Fwp-stage-switcher/lists"}