Harness Feature Flags (FF) is a feature management solution that enables users to change the software’s functionality, without deploying new code. FF uses feature flags to hide code or behaviours without having to ship new versions of the software. A feature flag is like a powerful if statement.
For more information, see https://harness.io/products/feature-flags/
To read more, see https://ngdocs.harness.io/category/vjolt35atg-feature-flags
To sign up, https://app.harness.io/auth/#/signup/
This is a sample app demonstrating PHP Server SDK integration with Relay Proxy.
- Create a project in Harness with Feature-flags module enabled
- Create an environment within your project
- Create a server and client side sdk keys in your environment and copy to clipboard
- Rename .env.example to .env
- Set environment variables:
- ACCOUNT_IDENTIFIER - Go to Account settings/Overview section in admin panel and copy Account Id
- ORG_IDENTIFIER -
- ADMIN_SERVICE=https://uat.harness.io/gateway/cf
- ADMIN_SERVICE_TOKEN - Create service account and create a token
- CLIENT_SERVICE=http://config.feature-flags.uat.harness.io/api/1.0
- SDK_BASE_URL=https://config.feature-flags.uat.harness.io/api/1.0
- SDK_EVENTS_URL=https://event.feature-flags.uat.harness.io/api/1.0
- API_KEYS - You need to provide server key
- SDK_KEY - You need to provide client key
- Create a boolean feature-flag in the admin console
- Replace the values for SDK Key (client) and feature-flag identifier in the example program from step 3 and 4
- Run the environment with
make start
and open link with sample response
make stop