Download the PHP package krak/symfony-rollout-rox without Composer

On this page you can find all versions of the php package krak/symfony-rollout-rox. 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 symfony-rollout-rox

Symfony Rollout Rox Integration

Symfony bundle integration with CloudBees Feature Flags (Rox by Rollout) php sdk.

Installation

Install with composer at krak/symfony-rollout-rox.

If symfony's composer install doesn't automatically register the bundle, you can do so manually:

Usage

Configuring the App Environment Key

Via ENV

Set the ROLLOUT_ROX_APP_ENV_KEY environment variable, and the system will pick up that key for configuration.

Via Parameter

The app environment key is set in the symfony parameter rollout_rox_app_env_key. You can set that parameter directly in your app parameters config like:

Registering Containers

The Rox php library works by registering container objects with public properties that contain the default flags/variants for an experiment. The Rox system will automatically register your flags/variants with the rollout api/admin interface.

To create and register a container, you can implement the RoxContainer interface.

Then to use that container in a service, you'll need to access it via the ContainerStore.

The ContainerStore is needed to lazily initialize the Rox system. Not all requests will need to use a feature flag, so the bundle doesn't initialize until a container is accessed from the store.

Customizing the Rox Setup

Adjusting Rox Options

If you just need to modify the RoxOptions that you would pass into Rox::setup, then you can setup a factory to build the RoxOptions, then add a service definition for those rox options, and then update the RoxSetup service definition arguments to accept the RoxOptions as the second parameter.

Advanced Customization

If you want to have more flexibility on registration and setup, and any other hooks, it's best to just implement your own RoxSetup instance and then register your service for RoxSetup instead of the default, or you could also use decoration as well, whatever works best for you.

You can checkout the GlobalDefaultRoxSetup class to see the simple implementation.


All versions of symfony-rollout-rox with dependencies

PHP Build Version
Package Version
Requires rollout/rox Version ^4.7
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 krak/symfony-rollout-rox contains the following files

Loading the files please wait ....