Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@

WordPress Feature flags plugin allow developers to configure features in plugins/themes behind the feature flags on both the server (PHP) and client (JS/TS) side.

## Installation

`composer require codeb/wp-feature-flags`

Packagist: https://packagist.org/packages/codeb/wp-feature-flags

## Hooks

### PHP filters
Expand Down Expand Up @@ -88,11 +94,11 @@ CSS

### PHP

- Run `./local` from your preferred CLI. Ensure you have Docker installed and running.
- The setup will automatically ssh into the container.
- To run unit tests `composer run test:unit`
- To run integrations tests `composer run test:integration`
- To run integrations tests as multisite `composer run test:multisite`
The WordPress unit and integration tests depends on `wp-env` setup. Ensure you run `yarn wp-env:coverage` before running the tests.

- To run unit tests `yarn php:unit`
- To run integrations tests `yarn php:integration`
- To run integrations tests as multisite `yarn php:multisite`

### JS

Expand Down
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "codeb-feature-flags",
"version": "0.3.1",
"version": "0.3.2",
"description": "Allows developers to enable / disable features based on flags.",
"license": "ISC",
"author": "Mohan Raj <https://mohanraj.dev>",
Expand Down Expand Up @@ -60,5 +60,9 @@
"jest-environment-jsdom": "^29.7.0",
"prettier": "^3.2.5"
},
"keywords": []
"keywords": [
"feature flags",
"wordpress",
"plugin"
]
}
2 changes: 1 addition & 1 deletion plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* Plugin Name: Feature Flags
* Plugin URI: https://github.com/codebtech/wp-feature-flags
* Description: Allows developers to enable / disable features based on flags.
* Version: 0.3.1
* Version: 0.3.2
* Requires at least: 6.4
* Requires PHP: 8.1
* Author: Mohan Raj
Expand Down