Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: FlagsmithProvider #126

Open
wants to merge 19 commits into
base: main
Choose a base branch
from

Conversation

ChrisLightfootWild
Copy link

@ChrisLightfootWild ChrisLightfootWild commented Mar 31, 2025

This PR

  • adds new package, open-feature/flagsmith-provider
    • implements OpenFeature\interfaces\provider\Provider interface for Flagsmith
    • depends on flagsmith/flagsmith-php-client

Notes

image

Follow-up Tasks

How to test

$flagsmith = new Flagsmith\Flagsmith('YOUR_FLAGSMITH_API_KEY');

OpenFeatureAPI::setProvider(new FlagsmithProvider($flagsmith));

Run the tests with:

composer run dev:test

You should (hopefully) see the below output:
image

Signed-off-by: Chris Lightfoot-Wild <github-clw@wild.me.uk>
Signed-off-by: Chris Lightfoot-Wild <github-clw@wild.me.uk>
Signed-off-by: Chris Lightfoot-Wild <github-clw@wild.me.uk>
Signed-off-by: Chris Lightfoot-Wild <github-clw@wild.me.uk>
Signed-off-by: Chris Lightfoot-Wild <github-clw@wild.me.uk>
…coded JSON array

Signed-off-by: Chris Lightfoot-Wild <github-clw@wild.me.uk>
…faultValue

Signed-off-by: Chris Lightfoot-Wild <github-clw@wild.me.uk>
Signed-off-by: Chris Lightfoot-Wild <github-clw@wild.me.uk>
Signed-off-by: Chris Lightfoot-Wild <github-clw@wild.me.uk>
Signed-off-by: Chris Lightfoot-Wild <github-clw@wild.me.uk>
Signed-off-by: Chris Lightfoot-Wild <github-clw@wild.me.uk>
Signed-off-by: Chris Lightfoot-Wild <github-clw@wild.me.uk>
Signed-off-by: Chris Lightfoot-Wild <github-clw@wild.me.uk>
Signed-off-by: Chris Lightfoot-Wild <github-clw@wild.me.uk>
@ChrisLightfootWild ChrisLightfootWild changed the title (feat): FlagsmithProvider feat: FlagsmithProvider Mar 31, 2025
Signed-off-by: Chris Lightfoot-Wild <github-clw@wild.me.uk>
Signed-off-by: Chris Lightfoot-Wild <github-clw@wild.me.uk>
Signed-off-by: Chris Lightfoot-Wild <github-clw@wild.me.uk>
Signed-off-by: Chris Lightfoot-Wild <github-clw@wild.me.uk>
Signed-off-by: Chris Lightfoot-Wild <github-clw@wild.me.uk>
@ChrisLightfootWild ChrisLightfootWild marked this pull request as ready for review March 31, 2025 23:55
@ChrisLightfootWild ChrisLightfootWild requested a review from a team as a code owner March 31, 2025 23:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant