PHPackages                             luyadev/luya-module-userauth - 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. luyadev/luya-module-userauth

ActiveLuya-module[Authentication &amp; Authorization](/categories/authentication)

luyadev/luya-module-userauth
============================

Authsystem with username and password for a given cms page area.

1.1.2(2y ago)12.0k4MITPHP

Since Jul 18Pushed 2y ago4 watchersCompare

[ Source](https://github.com/luyadev/luya-module-userauth)[ Packagist](https://packagist.org/packages/luyadev/luya-module-userauth)[ RSS](/packages/luyadev-luya-module-userauth/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (5)Versions (6)Used By (0)

 [![LUYA Logo](https://raw.githubusercontent.com/luyadev/luya/master/docs/logo/luya-logo-0.2x.png)](https://raw.githubusercontent.com/luyadev/luya/master/docs/logo/luya-logo-0.2x.png)

LUYA Frontend user authentification
===================================

[](#luya-frontend-user-authentification)

[![LUYA](https://camo.githubusercontent.com/c30b61934591d3a6fcb8718a93fd61bf840c0abd8a8d49aa0fdd4ab99567bdf4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f506f776572656425323062792d4c5559412d627269676874677265656e2e737667)](https://luya.io)

Authsystem with username and password for a given cms page area. **It does not contain a registration process for new users in the frontend!**.

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

[](#installation)

1. Install the extension through composer:

```
composer require luyadev/luya-module-userauth
```

2. Add to the config

```
'modules' => [
    //...
    'userauthfrontend' => [
        'class' => 'luya\userauth\frontend\Module',
        'useAppViewPath' => false, // When enabled the views will be looked up in the @app/views folder, otherwise the views shipped with the module will be used.
    ],
    'userauthadmin' => 'luya\userauth\admin\Module',
],
```

3. And the user component

```
'components' => [
    //...
    'user' => [
        'class' => 'yii\web\User',
        'identityClass' => 'luya\userauth\models\User',
    ]
],
```

4. Run the `./luya migrate` and `./luya import` command.
5. Place the `userauthfrontend` module on a given page in the cms.
6. Add the config variable identifier `userauth_redirect_nav_id` with the value of the page you have included the `userauthfrontend` in step **5**.
7. Optional you can configure with the variable identifer `userauth_afterlogin_nav_id` on which nav id the user should be redirect when no ref url is provided.

Usage
-----

[](#usage)

After the installation, you can secure any given page with the user login by checking the **Protect Page** checkbox in the page's **Page properties** panel. Important: this setting will not be inherited by subpages, it has to be set for every page that has to be secured.

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 84.7% 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 ~493 days

Total

5

Last Release

881d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/86184bf08843ed8fcc4aedb2fdecd8a9e832e47e89a7166cebfda529c176f5ce?d=identicon)[nadar](/maintainers/nadar)

---

Top Contributors

[![nadar](https://avatars.githubusercontent.com/u/3417221?v=4)](https://github.com/nadar "nadar (50 commits)")[![TheMaaarc](https://avatars.githubusercontent.com/u/3450438?v=4)](https://github.com/TheMaaarc "TheMaaarc (4 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")[![hbugdoll](https://avatars.githubusercontent.com/u/6715827?v=4)](https://github.com/hbugdoll "hbugdoll (2 commits)")[![rolandschaub](https://avatars.githubusercontent.com/u/3786245?v=4)](https://github.com/rolandschaub "rolandschaub (1 commits)")

---

Tags

cmshacktoberfestluyayii2authluya

###  Code Quality

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/luyadev-luya-module-userauth/health.svg)

```
[![Health](https://phpackages.com/badges/luyadev-luya-module-userauth/health.svg)](https://phpackages.com/packages/luyadev-luya-module-userauth)
```

###  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)[lab404/laravel-impersonate

Laravel Impersonate is a plugin that allows to you to authenticate as your users.

2.3k16.4M48](/packages/lab404-laravel-impersonate)[auth0/auth0-php

PHP SDK for Auth0 Authentication and Management APIs.

40820.2M68](/packages/auth0-auth0-php)[kreait/firebase-tokens

A library to work with Firebase tokens

24040.8M14](/packages/kreait-firebase-tokens)

PHPackages © 2026

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