teltek / pmk2-paella-stats-bundle
PuMuKIT 和 Paella 统计信息
2.0.0
2020-05-11 15:44 UTC
Requires
- php: >=7.2
- gpslab/geoip2: ^1.0
- pumukit/pumukit: ^3.3
- teltek/pumukit-paella-player-bundle: ^2.0
This package is auto-updated.
Last update: 2024-08-29 04:42:57 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