PHPackages                             devskyfly/yii-module-auth-security - 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. devskyfly/yii-module-auth-security

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

devskyfly/yii-module-auth-security
==================================

v0.0.2(4y ago)033MITPHPPHP &gt;=5.6.0

Since Jan 20Pushed 4y ago1 watchersCompare

[ Source](https://github.com/devskyfly/yii-module-auth-security)[ Packagist](https://packagist.org/packages/devskyfly/yii-module-auth-security)[ RSS](/packages/devskyfly-yii-module-auth-security/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependencies (7)Versions (3)Used By (0)

Yii2 Module Auth and Security
-----------------------------

[](#yii2-module-auth-and-security)

### Install

[](#install)

Composer

```
composer require devskyfly/yii-module-auth-security
```

Migrations

```
./yii migrate --migrationPath="vendor/devskyfly/yii-module-auth-security/src/migrations/"
```

### Config

[](#config)

Config app access

```
'as accessfilter' => [
	'class' => 'yii\filters\AccessControl',
	'except' => [ 'site/login'],
	'rules' => [
		[
			'allow' => true,
			'roles' => ['@']
		],
	]
]
```

Config app components

```
[
	'authManager' => [
    	'class' => 'yii\rbac\PhpManager'
	],
	'user' => [
		'class' => 'yii\web\User',
		'identityClass' => 'devskyfly\yiiModuleAuthSecurity\models\auth\User',
		'loginUrl' => ['/site/login']
	]
]
```

Config app modules

```
'modules' => [
	'auth-security' => [
		"class" => "devskyfly\yiiModuleAuthSecurity\Module",
		"loginTitle" => "Login page",
    	"loginKeywords" => "Login keywords",
    	"loginDescription" => "Login description"
	]
]
```

Config app controller

```
public function actions()
{
	return [
		'error' => [
			'class' => ErrorAction::class,
		],
		'login' => [
			'class' => LoginAction::class
		],
		'logout' => [
			'class' => LogoutAction::class
		],
	];
}
```

Config app login view by creating file /views/site/login.php

```
use devskyfly\yiiModuleAuthSecurity\widgets\auth\LoginForm;
echo LoginForm::widget(compact("loginForm"));
```

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

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

Total

2

Last Release

1635d ago

### Community

Maintainers

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

---

Top Contributors

[![devskyfly](https://avatars.githubusercontent.com/u/32880717?v=4)](https://github.com/devskyfly "devskyfly (22 commits)")

###  Code Quality

TestsCodeception

### Embed Badge

![Health badge](/badges/devskyfly-yii-module-auth-security/health.svg)

```
[![Health](https://phpackages.com/badges/devskyfly-yii-module-auth-security/health.svg)](https://phpackages.com/packages/devskyfly-yii-module-auth-security)
```

###  Alternatives

[lowbase/yii2-user

Yii2 user module

131.5k2](/packages/lowbase-yii2-user)

PHPackages © 2026

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