launchdarkly/php-server-sdk

Toggle Feature Flags for a user via the SDK

jacobsmith opened this issue · 2 comments

Is your feature request related to a problem? Please describe.
Our internal team uses LaunchDarkly to enable/disable portions of our application, specifically around billing. Because these billing steps are largely automated, I'd like to be able to have our internal administrative tool kick off changes to a user's subscription, including showing them a different payment page (say, moving from a mailed invoice to a credit card). To do this, I would add the user to a custom rule-set (matching on ID) since it's a case-by-case basis that customers may request certain features.

Describe the solution you'd like
Ideally, the PHP SDK would support the API method ( https://apidocs.launchdarkly.com/reference#update-flag-setting-for-user ) that would enable this.

Describe alternatives you've considered
I will probably have to manually create API requests instead of using the SDK.

Additional context

Thanks!

Hi @jacobsmith,

Our SDKs (such as php-server-sdk) are intended to run within customers' applications to base your application behavior on flag state. The SDKs aren't meant to be holistic client libraries for LaunchDarkly's APIs.

Luckily for you, we also offer a set of client-libraries for that more general purpose -- including a PHP client. For your particular use case I believe you want to use this API.

Let me know if that answers your question!

Ben

@bwoskow-ld Awesome, thank you so much! Yes, clearly I didn't realize that the server-sdk was different from the client-library. Thanks for pointing that out! 🎉