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-11-29 01:22:26 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();