Skip to content

Commit

Permalink
Rewrite
Browse files Browse the repository at this point in the history
  • Loading branch information
retlehs committed Feb 10, 2016
1 parent 43779e5 commit 2f3d403
Show file tree
Hide file tree
Showing 5 changed files with 291 additions and 61 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
vendor
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ 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:

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

Expand All @@ -29,19 +29,19 @@ If you use [Bedrock](https://github.com/roots/bedrock), `WP_ENV` is already defi

## Installation

If you're using Composer to manage WordPress, add wp-stage-switcher to your project's dependencies. Run:
This plugin must be installed via Composer. Add wp-stage-switcher to your project's dependencies:

```sh
composer require roots/wp-stage-switcher 1.0.3
composer require roots/wp-stage-switcher 2.0.0
```

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

```json
"require": {
"php": ">=5.3.0",
"wordpress": "3.9.2",
"roots/wp-stage-switcher": "1.0.3"
"php": ">=5.4.0",
"wordpress": "4.4.2",
"roots/wp-stage-switcher": "2.0.0"
}
```

Expand Down
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
"forum": "http://discourse.roots.io/"
},
"require": {
"php": ">=5.3.0",
"composer/installers": "~1.0"
"php": ">=5.4.0",
"composer/installers": "~1.0",
"jwage/purl": "^0.0.6"
}
}
212 changes: 212 additions & 0 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 2f3d403

Please sign in to comment.