mauro-moreno/silex-scientist

Scientist wrapper for the Silex framework.

0.1.1@alpha 2016-02-06 02:56 UTC

This package is auto-updated.

Last update: 2024-03-28 23:56:42 UTC


README

Scientist wrapper for the Silex framework

Installation

Require the latest version of Scientist Laravel using Composer.

composer require mauro-moreno/silex-scientist

Enable Service Provider

<?php
$app = new Silex\Application;
$app->register(new MauroMoreno\JsonApi\JsonApiServiceProvider);

Usage

<?php
$app['scientist']->experiment('foo')
    ->control($controlCallback)
    ->trial('First trial.', $trialCallback)
    ->run();