This bundle allows you to integrate the library ShowClix/cube-php in your Symfony2 application and interact with Cube collectors and evaluators.
Just to have a quick idea on how the bundle works have a look at this piece of code:
#Inside a controller action
$client = $this->get('cube_client');
$events = $client->metricGet(array(
'expression' => 'sum(cube_request)',
'step' => \Cube\Client::INT_ONE_MINUTE,
'limit' => 100,
));
foreach ($event in $events) {
echo "There were {$event['value']} hits during {$event['time']} \n";
}
You can learn more about the bundle in its documentation.
This bundle is distributed under the MIT license.
This bundle is maintained by Luciano Mammino.
If you want to improve or fix something feel free to submit a pull request. Contributions are always VERY welcome 😉