https://github.com/teltek/pumukitpaellastatsbundle
https://github.com/teltek/pumukitpaellastatsbundle
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/teltek/pumukitpaellastatsbundle
- Owner: teltek
- Created: 2017-05-08T11:30:35.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2022-08-04T08:21:21.000Z (almost 4 years ago)
- Last Synced: 2025-01-03T22:44:05.782Z (over 1 year ago)
- Language: PHP
- Size: 67.4 KB
- Stars: 1
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
PuMuKIT Paella Stats Bundle
==========================
Bundle based on [Symfony](http://symfony.com/) to work with the [PuMuKIT Video Platform](https://github.com/pumukit/PuMuKIT/blob/master/README.md) and [Paella Player](https://github.com/polimediaupv/paella).
Installation
------------
Steps 1 and 2 requires you to have Composer installed globally, as explained in the [installation chapter](https://getcomposer.org/doc/00-intro.md) of the Composer documentation.
### Step 1: Download the Bundle
Open a command console, enter your project directory and execute the
following command to download the latest stable version of this bundle:
```bash
$ composer require teltek/pumukit-paella-stats-bundle dev-master
```
### Step 2: Install the Bundle
Add the following line on bundles.php
```
```
### Step 3: Configure the bundle
PaellaStats have a hard dependency of [bundle for the Maxmind GeoIP2 API](https://github.com/gpslab/geoip2). It's a composer requirement, and you need
configure it to use.
```
gpslab_geoip:
# Path to download GeoIP database.
# It's a default value. You can change it.
cache: '%kernel.cache_dir%/GeoLite2-City.mmdb'
# URL for download new GeoIP database.
# It's a default value. You can change it.
url: 'http://geolite.maxmind.com/download/geoip/database/GeoLite2-City.mmdb.gz'
# Get model data in this locale
# It's a default value. You can change it.
locales: [ '%locale%' ]
```
### Step 4: Update assets
```bash
$ php bin/console cache:clear
$ php bin/console cache:clear --env=prod
$ php bin/console assets:install
```
### OPTIONAL: Load example statistics data
```bash
php bin/console pumukit:paella:stats:init:example
```