lmammino/cube-bundle
Composer 安装命令:
composer require lmammino/cube-bundle
包简介
Symfony2 Bundle to integrate cube-php
README 文档
README
This bundle allows you to integrate the library ShowClix/cube-php in your Symfony2 application and interact with Cube collectors and evaluators.
A little appetizer
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"; }
Documentation
You can learn more about the bundle in its documentation.
License
This bundle is distributed under the MIT license.
Credits and contributions
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 😉
统计信息
- 总下载量: 49
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-04-01