teltek / pumukit-paella-stats-bundle

PuMuKIT 和 Paella 统计数据

2.0.0 2020-05-11 15:44 UTC

This package is auto-updated.

Last update: 2024-09-04 12:42:00 UTC


README

基于 Symfony 的 Bundle,用于与 PuMuKIT 视频平台Paella 播放器 一起使用。

安装

步骤 1 和 2 需要您全局安装 Composer,如 Composer 文档中的 安装章节 所述。

步骤 1:下载 Bundle

打开命令行,进入您的项目目录,并执行以下命令以下载此 Bundle 的最新稳定版本

$ composer require teltek/pumukit-paella-stats-bundle dev-master

步骤 2:安装 Bundle

在 bundles.php 中添加以下行


步骤 3:配置 Bundle

PaellaStats 对 Maxmind GeoIP2 API 的 Bundle 有硬依赖。这是一个 composer 要求,您需要配置它以使用它。

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%' ]

步骤 4:更新资源

$ php bin/console cache:clear
$ php bin/console cache:clear --env=prod
$ php bin/console assets:install

可选:加载示例统计数据

php bin/console pumukit:paella:stats:init:example