Existing PHP tool switching tool

I recently read a series of articles about the idea of ​​using “function switches” or “gatekeepers” to keep functions hidden from users until development is complete. Facebook and Flickr also talk about how they use this to test new features with a subset of users before untying them at all.

A bit of googling did not reveal any existing PHP packages / tools that could be added to a web application to handle this type of thing. It seems straight forward enough to fold our own, but there is no reason to reinvent this wheel if we don't need it. Are there any existing PHP tools for this?

Articles

Clarification: part of this that I am looking to see if it exists is an admin panel that controls which users can see the new features. In the Flickr example, they can include it based on the host. In the example on Facebook, they add functionality, such as restricting capabilities to 5% of users, only TechCrunch users, or only East Coast users.

The admin panel seems decisive when you have 200 features included, 10 features that are not yet fully implemented, and 3 more that you demonstrate to some users.

+7
source share
3 answers
if (user_can_see_app()) { show_app(); } else { dont_show_app(); } 

I don’t understand why the package would be necessary for something so simple.

+1
source

I wrote a microservice for switching functions called Bipolar:

https://marinho.imtqy.com/bipolar-server

It is written in Python, but it doesn’t matter because it is an external API and Admin interface, so all you need to do is write a PHP client for it. We used it in production for a while, but only recently worked on public release and documentation. To support JavaScript, it can trigger notifications using Webhooks as the main URL call or through the Pusher event.

I missed a little after many years without contacting PHP, but I can help you write a client if you are interested.

I hope this can be helpful.

+1
source

The easiest solution I have found is to have a function switching state stored in some remote place that can easily change (enable / disable)

It was easy for me to have a repo on GitHub that stores some JSON data with a function switching function, later you can change this state on GitHub (from phone / PC, etc.)

your PHP code should get JSON and make a decision from it ...

you can see the blog post on how to achieve this:

http://www.nimrodstech.com/dead-simple-feature-toggle/

it shows a piece of code on how to achieve this in a simple way.

0
source

All Articles