PHPackages                             atmaliance/yii2-atm-keycloak - 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. atmaliance/yii2-atm-keycloak

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

atmaliance/yii2-atm-keycloak
============================

Package

v2.0.0(2y ago)026MITPHPPHP &gt;=7.4

Since Dec 30Pushed 2y ago1 watchersCompare

[ Source](https://github.com/devatmaliance/yii2-atm-keycloak)[ Packagist](https://packagist.org/packages/atmaliance/yii2-atm-keycloak)[ RSS](/packages/atmaliance-yii2-atm-keycloak/feed)WikiDiscussions master Synced 1mo ago

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

ATM Yii2 Keycloak
=================

[](#atm-yii2-keycloak)

Что нужно сделать?
------------------

[](#что-нужно-сделать)

Необходимо добавить код в следующих местах:

### Файл `common/config/main.php`

[](#файл-commonconfigmainphp)

```
return [
    'components' => [
        'keycloakService' => [
            'class' => atmaliance\yii2_keycloak\KeycloakService::class,
        ],
        'keycloakJwt' => [
            'class' => \sizeg\jwt\Jwt::class,
            'jwtValidationData' => atmaliance\yii2_keycloak\models\validator\KeycloakJwtValidator::class,
        ],
    ],
];
```

### Файл `common/config/main-local.php`

[](#файл-commonconfigmain-localphp)

```
return [
    'components' => [
        'keycloakService' => [
            'baseUrl' => 'http://localhost:8180',
            'realm' => 'myRealm',
            'clientId' => 'myClientId',
            'clientSecret' => '6HB20p1vIw0tDB3uaaXxkxXs5l0JOgRu',
            'callbackUrl' => '/keycloak/auth/callback',
            'userInformationHandler' => new myUserInformationHandler(),
            'userInformationDTOClass' => myUserInformationDTOClass::class,
        ]
    ],
];
```

**Примечания**

1. Ожидается, что `userInformationHandler` будет реализовывать `atmaliance\yii2_keycloak\models\handler\KeycloakUserInformationHandlerInterface`
2. Ожидается, что `userInformationDTOClass` будет реализовывать `atmaliance\yii2_keycloak\models\dto\contract\KeycloakUserInformationInterface`

### Файл `config/main.php`

[](#файл-configmainphp)

```
return [
    'bootstrap' => [
        \atmaliance\yii2_keycloak\bootstrap\KeycloakBootstrap::class,
    ],
    'modules' => [
        'atm-id' =>  [
            'class' => atmaliance\yii2_keycloak\modules\KeycloakModule::class
        ],
    ],
];
```

### Файл `common/config/params.php`

[](#файл-commonconfigparamsphp)

```
return [
    'keycloakEnabled' => true,
];
```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

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

Total

2

Last Release

778d ago

Major Versions

v1.0.0 → v2.0.02024-03-25

### Community

Maintainers

![](https://www.gravatar.com/avatar/b6f1996ce44ddff8cbc2bf61989ad548ed71731866131131603003f3f0bbda6f?d=identicon)[devatmaliance](/maintainers/devatmaliance)

---

Top Contributors

[![Kellenon](https://avatars.githubusercontent.com/u/48764983?v=4)](https://github.com/Kellenon "Kellenon (20 commits)")

---

Tags

authyii2extensionkeycloakatm72

### Embed Badge

![Health badge](/badges/atmaliance-yii2-atm-keycloak/health.svg)

```
[![Health](https://phpackages.com/badges/atmaliance-yii2-atm-keycloak/health.svg)](https://phpackages.com/packages/atmaliance-yii2-atm-keycloak)
```

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M2.6k](/packages/craftcms-cms)[web-auth/webauthn-lib

FIDO2/Webauthn Support For PHP

1195.3M72](/packages/web-auth-webauthn-lib)[web-auth/webauthn-framework

FIDO2/Webauthn library for PHP and Symfony Bundle.

50570.7k1](/packages/web-auth-webauthn-framework)[kakadu-dev/yii2-jwt-auth

Extension provide JWT auth for Yii2

105.8k](/packages/kakadu-dev-yii2-jwt-auth)[yiichina/yii2-auth

Yii2 中使用第三方登录扩展，包括：微博，QQ，微信，百度等

191.1k2](/packages/yiichina-yii2-auth)

PHPackages © 2026

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