PHPackages                             igorsantos07/yii-useridentity-trait - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. igorsantos07/yii-useridentity-trait

AbandonedYii-extension[Authentication &amp; Authorization](/categories/authentication)

igorsantos07/yii-useridentity-trait
===================================

Trait version of Yii 1.1 UserIdentity

v1.1.0(11y ago)023BSD-3-ClausePHPPHP &gt;=5.4

Since Jul 7Pushed 11y ago1 watchersCompare

[ Source](https://github.com/igorsantos07/Yii-UserIdentity-trait)[ Packagist](https://packagist.org/packages/igorsantos07/yii-useridentity-trait)[ RSS](/packages/igorsantos07-yii-useridentity-trait/feed)WikiDiscussions master Synced 3d ago

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

Yii 1.1's UserIdentity, trait version
=====================================

[](#yii-11s-useridentity-trait-version)

This is a copy implementation of the original UserIdentity class, but instead as a Trait. This way you can implement your authentication logic inside your model, if those are tightly coupled - what makes sense in REST models, for example, where you could have a `user` service that at same time retrieves data and logs in.

Most part of code was originally from `CBaseUserIdentity`, so using this trait is equivalent of inheriting from that class, except for the fact **you also have to implement IUserIdentity in your class**.

It is also namespaced under `igorsantos07` so your IDE will not conflict with Gii or internal framework files :)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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 ~5 days

Total

3

Last Release

4316d ago

Major Versions

v0.1.0 → v1.0.02014-07-07

### Community

Maintainers

![](https://www.gravatar.com/avatar/8768be93b53951c06cbe2de65c60afdbd42d08e8baa886fbc2db3069c8fccc3e?d=identicon)[igorsantos07](/maintainers/igorsantos07)

---

Top Contributors

[![igorsantos07](https://avatars.githubusercontent.com/u/532299?v=4)](https://github.com/igorsantos07 "igorsantos07 (6 commits)")

---

Tags

Authenticationyiiyii-1.1

### Embed Badge

![Health badge](/badges/igorsantos07-yii-useridentity-trait/health.svg)

```
[![Health](https://phpackages.com/badges/igorsantos07-yii-useridentity-trait/health.svg)](https://phpackages.com/packages/igorsantos07-yii-useridentity-trait)
```

###  Alternatives

[tymon/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

11.5k49.1M350](/packages/tymon-jwt-auth)[league/oauth2-server

A lightweight and powerful OAuth 2.0 authorization and resource server library with support for all the core specification grants. This library will allow you to secure your API with OAuth and allow your applications users to approve apps that want to access their data from your API.

6.6k136.0M248](/packages/league-oauth2-server)[league/oauth2-client

OAuth 2.0 Client Library

3.8k118.6M1.2k](/packages/league-oauth2-client)[google/auth

Google Auth Library for PHP

1.4k272.7M162](/packages/google-auth)[pragmarx/google2fa

A One Time Password Authentication package, compatible with Google Authenticator.

2.0k82.4M164](/packages/pragmarx-google2fa)[paragonie/sodium_compat

Pure PHP implementation of libsodium; uses the PHP extension if it exists

934131.6M155](/packages/paragonie-sodium-compat)

PHPackages © 2026

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