Download the PHP package genericmilk/rollout without Composer

On this page you can find all versions of the php package genericmilk/rollout. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package rollout

🤖 Rollout

By Genericmilk

Rollout allows you to simplify A/B testing by specifying a date of when your code should be fully live in a simple controller if statement! It allows big changes to be rolled out slowly using IP addresses so you can respond quicker to issues before it hits everyones screens!

Install Rollout

To get started using Rollout you need to add it to your composer.json file. You can do this by running the following command

This'll install the prerequisites to get Rollout working.

Using Rollout

To get started using Rollout in your controller, You need to import it. Add this to the top of your controller to get started;

Now that you've added Rollout to your controller, you can use it to in your functions!

Creating a rollout

Rollouts simply return booleans which allow them to be used in if statements very easily. To create one, simply use the following code:

Rollout will use the from parameter and work out how close we are to the until parameter. It'll then use that percentage to progress through IP addresses (Starting at 0.0.0.0 all the way up to 255.255.255). If your ip address falls below the current rollout percentage the boolean will return a false which will make the code you specify not fire. However if you are within the threshold, the boolean will naturally return a true which means you get to run the code specified!

You can do this in a full if/else statement too by extending as such

In the above example the controller will return the appropriate string depending on your current rollout.

Showing a percentage of a rollout

If you need to see where a rollout is in its lifespan you can instead of using the ->go() command substitute for ->status();. This will instead of returning a boolean return a int with the curent percentage of the rollout. You can use that like so;

Roadmap

I really hope you love using Rollout! Let me know your thoughts! I have some improvements down the line too and am open to bug fixes etc. Hope this is useful to you!

Love you guys 🥰


All versions of rollout with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package genericmilk/rollout contains the following files

Loading the files please wait ....