anmoroz / yii2-analytics
Yii2 Module for data analysts
Installs: 5
Dependents: 0
Suggesters: 0
Security: 0
Stars: 9
Watchers: 2
Forks: 2
Open Issues: 0
Type:yii2-extension
Requires
- php: >=5.4.0
- bower-asset/select2: ~4.0
- ruflin/elastica: ~2.2.1
- yiisoft/yii2: ~2.0
- yiisoft/yii2-bootstrap: ~2.0
Requires (Dev)
This package is not auto-updated.
Last update: 2025-03-05 12:18:45 UTC
README
Construction of complex sections of data in tabular form.
Здесь документация на Русском языке
Requirements
- PHP >= 5.4.0.
- Elasticsearch 1.7.2
- yiisoft/yii2 ~2.0
- yiisoft/yii2-bootstrap ~2.0
- ruflin/elastica ~2.2.1
- bower-asset/select2 ~4.0
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist anmoroz/yii2-analytics
or add
"anmoroz/yii2-analytics": "~0.0.1"
to the require section of your composer.json.
Configuration
Edit the configuration file (web.php), for example:
In section "module"
'analytics' => [ 'class' => 'anmoroz\analytics\Module', 'configClass' => 'app\components\AnalystsConfigurator', 'dbAdapterName' => 'db', 'elasticSearch' => [ 'host' => 'localhost', 'port' => '9200', 'debug' => false ] ]
Edit the configuration file (console.php) as web.php, and additionally in section "bootstrap"
'bootstrap' => ['analytics']
Create AnalystsConfigurator exstends anmoroz\analytics\components\AbstractConfigurator
Indexing data
Execute the php yii analytics/indexation
command