Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lmammino/cubebundle
Symfony2 Bundle to integrate cube-php
https://github.com/lmammino/cubebundle
bundle cube cube-php driver metric metrics php symfony symfony-bundle
Last synced: 25 days ago
JSON representation
Symfony2 Bundle to integrate cube-php
- Host: GitHub
- URL: https://github.com/lmammino/cubebundle
- Owner: lmammino
- Created: 2014-04-01T18:46:54.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-04-09T19:00:59.000Z (over 10 years ago)
- Last Synced: 2024-10-04T15:41:20.189Z (about 1 month ago)
- Topics: bundle, cube, cube-php, driver, metric, metrics, php, symfony, symfony-bundle
- Language: PHP
- Size: 207 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
CubeBundle
==========
This bundle allows you to integrate the library [ShowClix/cube-php](https://github.com/ShowClix/cube-php) in your
Symfony2 application and interact with [Cube](https://github.com/square/cube) collectors and evaluators.[![Build Status](https://travis-ci.org/lmammino/CubeBundle.png?branch=master)](https://travis-ci.org/lmammino/CubeBundle)
[![Latest Stable Version](https://poser.pugx.org/lmammino/cube-bundle/v/stable.png)](https://packagist.org/packages/lmammino/cube-bundle)
[![Latest Unstable Version](https://poser.pugx.org/lmammino/cube-bundle/v/unstable.png)](https://packagist.org/packages/lmammino/cube-bundle)
[![Dependency Status](https://www.versioneye.com/user/projects/533bd7ec7bae4be7ee00012f/badge.png)](https://www.versioneye.com/user/projects/533bd7ec7bae4be7ee00012f)
[![Total Downloads](https://poser.pugx.org/lmammino/cube-bundle/downloads.png)](https://packagist.org/packages/lmammino/cube-bundle)## A little appetizer
Just to have a quick idea on how the bundle works have a look at this piece of code:```php
#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](Resources/doc/index.md).## License
This bundle is distributed under the [MIT license](Resources/meta/LICENSE).## Credits and contributions
This bundle is maintained by [Luciano Mammino](http://loige.com).If you want to improve or fix something feel free to submit a pull request.
Contributions are always VERY welcome :wink: