2017 © Pedro Peláez
 

yii2-extension yii2-anonymoususer

A Yii2 extension for tracking anonymous users.

image

simonmesmith/yii2-anonymoususer

A Yii2 extension for tracking anonymous users.

  • Thursday, July 17, 2014
  • by simonmesmith
  • Repository
  • 1 Watchers
  • 1 Stars
  • 28 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 40 % Grown

The README.md

Yii2 Anonymous User

A Yii2 extension for tracking anonymous users., (*1)

Installation

The preferred way to install this extension is through composer., (*2)

Either run, (*3)

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

or add, (*4)

"simonmesmith/yii2-googleadsense": "*"

to the require section of your composer.json file., (*5)

Usage

Once the extension is installed :, (*6)

  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',
        ],
        ...
  1. Use the component when you need to track an anonymous user as follows:
    Yii::$app->anonymousUser->id

The Versions

17/07 2014

dev-master

9999999-dev

A Yii2 extension for tracking anonymous users.

  Sources   Download

MIT

The Requires

 

by Simon Smith

extension yii2

17/07 2014

1.0.1

1.0.1.0

A Yii2 extension for tracking anonymous users.

  Sources   Download

MIT

The Requires

 

by Simon Smith

extension yii2

16/07 2014

1.0.0

1.0.0.0

A Yii2 extension for tracking anonymous users.

  Sources   Download

MIT

The Requires

 

by Simon Smith

extension yii2