Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/armetiz/armetizstatisticbundle
Give some statistic features to a Symfony Application.
https://github.com/armetiz/armetizstatisticbundle
Last synced: about 1 month ago
JSON representation
Give some statistic features to a Symfony Application.
- Host: GitHub
- URL: https://github.com/armetiz/armetizstatisticbundle
- Owner: armetiz
- Created: 2013-01-31T14:27:55.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2013-01-31T14:47:31.000Z (almost 12 years ago)
- Last Synced: 2023-03-22T15:02:36.560Z (over 1 year ago)
- Language: PHP
- Size: 113 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG
Awesome Lists containing this project
README
ArmetizStatisticBundle
=====================
[![project status](http://stillmaintained.com/armetiz/ArmetizStatisticBundle.png)](http://stillmaintained.com/armetiz/ArmetizStatisticBundle)
[![Build Status](https://secure.travis-ci.org/armetiz/ArmetizStatisticBundle.png)](http://travis-ci.org/armetiz/ArmetizStatisticBundle)Give some statistic features to a Symfony Application.
## Installation
Installation is a quick 3 step process:
1. Download ArmetizStatisticBundle using composer
2. Enable the Bundle
3. Configure your application's config.yml### Step 1: Download ArmetizStatisticBundle using composer
Add ArmetizMediaBundle in your composer.json:
```js
{
"require": {
"armetiz/statistic-bundle": "*"
}
}
```Now tell composer to download the bundle by running the command:
``` bash
$ php composer.phar update armetiz/statistic-bundle
```Composer will install the bundle to your project's `vendor/armetiz` directory.
### Step 2: Enable the bundle
Enable the bundle in the kernel:
``` php
get("armetiz.statistic.manager.tracker");
$tracker->track("user", "view", $user->getId());
}}
?>
```### Features
- Store an event with this properties : category, action, created date, value, ip, username & support
- An event is dispatch when a new event is stored : Armetiz\StatisticBundle\Event\TrackEvent::TRACK