PHPackages                             rmrevin/yii2-ulogin - 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. rmrevin/yii2-ulogin

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

rmrevin/yii2-ulogin
===================

Extension for yii2 ulogin integration

1.4.0(8y ago)1812.1k9[2 issues](https://github.com/rmrevin/yii2-ulogin/issues)MITPHPPHP &gt;=5.4.0

Since Aug 9Pushed 8y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (1)Versions (12)Used By (0)

ULogin integration for Yii 2
============================

[](#ulogin-integration-for-yii-2)

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

[](#installation)

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

Either run

```
composer require "rmrevin/yii2-ulogin:~1.4"
```

or add

```
"rmrevin/yii2-ulogin": "~1.4",

```

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

Usage
-----

[](#usage)

```
use rmrevin\yii\ulogin\ULogin;

echo ULogin::widget([
    // widget look'n'feel
    'display' => ULogin::D_PANEL,

    // required fields
    'fields' => [ULogin::F_FIRST_NAME, ULogin::F_LAST_NAME, ULogin::F_EMAIL, ULogin::F_PHONE, ULogin::F_CITY, ULogin::F_COUNTRY, ULogin::F_PHOTO_BIG],

    // optional fields
    'optional' => [ULogin::F_BDATE],

    // login providers
    'providers' => [ULogin::P_VKONTAKTE, ULogin::P_FACEBOOK, ULogin::P_TWITTER, ULogin::P_GOOGLE],

    // login providers that are shown when user clicks on additonal providers button
    'hidden' => [],

    // where to should ULogin redirect users after successful login
    'redirectUri' => ['sign/ulogin'],

    // force use https in redirect uri
    'forceRedirectUrlScheme' => 'https',

    // optional params (can be ommited)
    // force widget language (autodetect by default)
    'language' => ULogin::L_RU,

    // providers sorting ('relevant' by default)
    'sortProviders' => ULogin::S_RELEVANT,

    // verify users' email (disabled by default)
    'verifyEmail' => '0',

    // mobile buttons style (enabled by default)
    'mobileButtons' => '1',
]);
```

Getting user info after success auth (response from ulogin):

```
use rmrevin\yii\ulogin\AuthAction;

class SiteController extends Controller
{

    public function action()
    {
        return [
            // ...
            'ulogin-auth' => [
                'class' => AuthAction::className(),
                'successCallback' => [$this, 'uloginSuccessCallback'],
                'errorCallback' => function($data){
                    \Yii::error($data['error']);
                },
            ]
        ];
    }

    public function uloginSuccessCallback($attributes)
    {
        print_r($attributes);
    }
}
```

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity35

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 84.2% 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 ~177 days

Recently: every ~345 days

Total

11

Last Release

2936d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1ed2a8c869410bcc2f79245fe77cf156db86c83fed1c60c3dea8df1e04966788?d=identicon)[rmrevin](/maintainers/rmrevin)

---

Top Contributors

[![rmrevin](https://avatars.githubusercontent.com/u/803507?v=4)](https://github.com/rmrevin "rmrevin (16 commits)")[![neanton](https://avatars.githubusercontent.com/u/452471?v=4)](https://github.com/neanton "neanton (3 commits)")

---

Tags

oauthauthorizationyii2ulogin

### Embed Badge

![Health badge](/badges/rmrevin-yii2-ulogin/health.svg)

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

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)[nodge/yii2-eauth

Yii2 EAuth Extension. EAuth allows to authenticate users with accounts on other websites (Google, Facebook, Twitter, etc).

194102.8k](/packages/nodge-yii2-eauth)[budyaga/yii2-users

Module for manage users and their rights with the support of registration through social services and assigned to each user more than one social service.

429.1k](/packages/budyaga-yii2-users)[chervand/yii2-oauth2-server

OAuth 2.0 server for Yii 2.0 with MAC tokens support.

1524.7k1](/packages/chervand-yii2-oauth2-server)

PHPackages © 2026

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