PHPackages                             simonmesmith/yii2-anonymoususer - 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. simonmesmith/yii2-anonymoususer

AbandonedArchivedYii2-extension[Utility &amp; Helpers](/categories/utility)

simonmesmith/yii2-anonymoususer
===============================

A Yii2 extension for tracking anonymous users.

1.0.1(11y ago)1771MITPHPPHP &gt;=5.4.0

Since Jul 16Pushed 11y ago1 watchersCompare

[ Source](https://github.com/simonmesmith/yii2-anonymoususer)[ Packagist](https://packagist.org/packages/simonmesmith/yii2-anonymoususer)[ RSS](/packages/simonmesmith-yii2-anonymoususer/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

Yii2 Anonymous User
===================

[](#yii2-anonymous-user)

A Yii2 extension for tracking anonymous users.

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist simonmesmith/yii2-googleadsense "*"

```

or add

```
"simonmesmith/yii2-googleadsense": "*"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

Once the extension is installed :

1. Run /data/anonymoususer.sql to set up the required table. Note that it currently creates the table with a tbl\_ prefix. Also note that I've yet to experiment with Yii2 migrations for setting up database objects, hence why this just uses a .sql file.
2. Add the following to your main.php configuration file:

```
    'components' => [
		...
	    'anonymousUser' => [
	        'class' => 'simonmesmith\anonymoususer\AnonymousUserComponent',
	    ],
		...

```

3. Use the component when you need to track an anonymous user as follows:

```
    Yii::$app->anonymousUser->id

```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

4314d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3c69fe5eb1fb59f12c716ee59b27adc4b28baddc8591feab89ae6b115c703fa2?d=identicon)[simonmesmith](/maintainers/simonmesmith)

---

Top Contributors

[![simonmesmith](https://avatars.githubusercontent.com/u/5099521?v=4)](https://github.com/simonmesmith "simonmesmith (3 commits)")

---

Tags

yii2extension

### Embed Badge

![Health badge](/badges/simonmesmith-yii2-anonymoususer/health.svg)

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

###  Alternatives

[vyants/yii2-daemon

Extension provides functionality for simple daemons creation and control

7859.0k](/packages/vyants-yii2-daemon)[dmstr/yii2-cookie-consent

Yii2 Cookie Consent Widget

1452.6k](/packages/dmstr-yii2-cookie-consent)[richardfan1126/yii2-js-register

Yii2 widget to register JS into view

1357.2k7](/packages/richardfan1126-yii2-js-register)

PHPackages © 2026

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