PHPackages                             natansdj/wp-stage-switcher - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. natansdj/wp-stage-switcher

AbandonedArchivedWordpress-plugin[Utility &amp; Helpers](/categories/utility)

natansdj/wp-stage-switcher
==========================

WordPress plugin that allows you to switch between different environments from the admin bar

1.0.4(10y ago)013MITPHPPHP &gt;=5.3.0

Since Jan 13Pushed 10y ago1 watchersCompare

[ Source](https://github.com/natansdj/wp-stage-switcher)[ Packagist](https://packagist.org/packages/natansdj/wp-stage-switcher)[ Docs](http://roots.io/plugin/stage-switcher/)[ RSS](/packages/natansdj-wp-stage-switcher/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (1)Versions (6)Used By (0)

WordPress Stage Switcher
========================

[](#wordpress-stage-switcher)

A WordPress plugin that allows you to switch between different environments from the admin bar.

[![WordPress Stage Switcher](https://camo.githubusercontent.com/0a9b828d1b9a41e3cb262af86427c8b9532d951369f6fb637d06ef211817eabb/68747470733a2f2f726f6f74732e696f2f6170702f75706c6f6164732f706c7567696e2d73746167652d73776974636865722d383030783435302e706e67)](https://camo.githubusercontent.com/0a9b828d1b9a41e3cb262af86427c8b9532d951369f6fb637d06ef211817eabb/68747470733a2f2f726f6f74732e696f2f6170702f75706c6f6164732f706c7567696e2d73746167652d73776974636865722d383030783435302e706e67)

**Fixed bug on hosts url**

Requirements
------------

[](#requirements)

You'll need to have `ENVIRONMENTS` and `WP_ENV` defined in your WordPress config.

The `ENVIRONMENTS` constant must be a serialized array of `'environment' => 'url'` elements:

```
$envs = array(
  'development' => 'http://example.dev',
  'staging'     => 'http://staging.example.com',
  'production'  => 'http://example.com'
);
define('ENVIRONMENTS', serialize($envs));
```

`WP_ENV` must be defined as the current environment:

```
define('WP_ENV', 'development');
```

If you use [Bedrock](https://github.com/roots/bedrock), `WP_ENV` is already defined in the config.

Installation
------------

[](#installation)

If you're using Composer to manage WordPress, add wp-stage-switcher to your project's dependencies. Run:

```
composer require natansdj/wp-stage-switcher 1.0.4
```

Or manually add it to your `composer.json`:

```
"require": {
  "php": ">=5.3.0",
  "wordpress": "3.9.2",
  "natansdj/wp-stage-switcher": "1.0.4"
}
```

Support
-------

[](#support)

Use the [Roots Discourse](http://discourse.roots.io/) to ask questions and get support.

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 86.7% 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 ~180 days

Total

5

Last Release

3829d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2202955?v=4)[Natan S](/maintainers/natansdj)[@natansdj](https://github.com/natansdj)

---

Top Contributors

[![retlehs](https://avatars.githubusercontent.com/u/115911?v=4)](https://github.com/retlehs "retlehs (13 commits)")[![aaemnnosttv](https://avatars.githubusercontent.com/u/1621608?v=4)](https://github.com/aaemnnosttv "aaemnnosttv (1 commits)")[![Arty2](https://avatars.githubusercontent.com/u/3519269?v=4)](https://github.com/Arty2 "Arty2 (1 commits)")

---

Tags

wordpress

### Embed Badge

![Health badge](/badges/natansdj-wp-stage-switcher/health.svg)

```
[![Health](https://phpackages.com/badges/natansdj-wp-stage-switcher/health.svg)](https://phpackages.com/packages/natansdj-wp-stage-switcher)
```

###  Alternatives

[roots/bedrock

WordPress boilerplate with Composer, easier configuration, and an improved folder structure

6.5k456.5k2](/packages/roots-bedrock)[helsingborg-stad/municipio

A bootstrap theme for creating municipality sites.

4028.3k10](/packages/helsingborg-stad-municipio)[roots/wp-stage-switcher

WordPress plugin that allows you to switch between different environments from the admin bar

374458.3k3](/packages/roots-wp-stage-switcher)[vinkla/wordplate

The WordPlate boilerplate

2.2k5.3k](/packages/vinkla-wordplate)

PHPackages © 2026

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