2017 © Pedro Peláez
 

yii2-extension yii2-lastseen

Automatically fills last activity time for current user

image

tugmaks/yii2-lastseen

Automatically fills last activity time for current user

  • Monday, March 20, 2017
  • by tugmaks
  • Repository
  • 0 Watchers
  • 1 Stars
  • 230 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 1 % Grown

The README.md

Yii2 Last Seen Behavior

Automatically fills last activity time for current user, (*1)

Installation

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

Either run, (*3)

php composer.phar require --prefer-dist tugmaks/yii2-lastseen "0.2"

or add, (*4)

"tugmaks/yii2-lastseen": "0.3"

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

Usage

Once the behavior is installed, simply use it in your code by adding this lines to application config:, (*6)

php 'as lastSeen'=>[ 'class'=>'tugmaks\behaviors\LastSeen\LastSeenBehavior', 'lastSeenAttribute'=>'last_seen' // attribute that stores last seen time in user table // uncomment this line if you store last seen as datetime, by default beahavior saves as unixtime //'value'=> new \yii\db\Expression('NOW()'), ], (*7)

The Versions

20/03 2017

dev-master

9999999-dev

Automatically fills last activity time for current user

  Sources   Download

MIT

The Requires

 

by Maxim Tugaev

extension yii2

20/03 2017

0.3

0.3.0.0

Automatically fills last activity time for current user

  Sources   Download

MIT

The Requires

 

by Maxim Tugaev

extension yii2

09/12 2016

0.2

0.2.0.0

Automatically fills last activity time for current user

  Sources   Download

MIT

The Requires

 

by Maxim Tugaev

extension yii2

09/12 2016

0.1

0.1.0.0

Automatically fills last activity time for current user

  Sources   Download

MIT

The Requires

 

by Maxim Tugaev

extension yii2