PHPackages                             lucidtaz/yii2-analytics - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. lucidtaz/yii2-analytics

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

lucidtaz/yii2-analytics
=======================

Yii2 bindings for lucidtaz/analytics

015PHP

Since Sep 14Pushed 9y ago1 watchersCompare

[ Source](https://github.com/LucidTaZ/Yii2-Analytics)[ Packagist](https://packagist.org/packages/lucidtaz/yii2-analytics)[ RSS](/packages/lucidtaz-yii2-analytics/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Yii2 Analytics
==============

[](#yii2-analytics)

Yii2 bindings for LucidTaZ/Analytics.

USAGE
-----

[](#usage)

Include the package using Composer:

```
composer require "lucidtaz/yii2-analytics"

```

Then configure `web.php` and `console.php` to include the module:

```
$config = [
    ...
    'bootstrap' => ['analytics'],
    'modules' => [
        'analytics' => [
            'class' => 'lucidtaz\analytics\yii2\Module',
            'db' => /* optional db specification */,
        ],
        ...
    ],
    ...
];
```

Create the tables, during installation, by running the migration:

```
php yii migrate --migrationPath=@vendor/lucidtaz/yii2-analytics/src/migrations

```

FUNCTIONALITY
-------------

[](#functionality)

To easily track all pageviews of a Controller, use the PageviewBehavior:

```
public function behaviors()
{
    return [
        'pageview' => [
            'class' => 'lucidtaz\analytics\yii2\behaviors\PageviewBehavior',
        ],
    ];
}
```

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/9b20210b4ff98833690fc7ac576d9fdb18fac680ed758415267830bf3a8256f5?d=identicon)[LucidTaZ](/maintainers/LucidTaZ)

### Embed Badge

![Health badge](/badges/lucidtaz-yii2-analytics/health.svg)

```
[![Health](https://phpackages.com/badges/lucidtaz-yii2-analytics/health.svg)](https://phpackages.com/packages/lucidtaz-yii2-analytics)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
