Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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