PHPackages                             luyadev/luya-module-admin-usertoken - 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-admin-usertoken

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

luyadev/luya-module-admin-usertoken
===================================

Extend the LUYA Admin by providing app's which then LUYA Admin users can authenticated through the API.

1.3.1(2y ago)13.7k2MITPHPCI failing

Since Sep 24Pushed 2y agoCompare

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

READMEChangelog (6)Dependencies (4)Versions (7)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 Admin User Token Module
============================

[](#luya-admin-user-token-module)

[![LUYA](https://camo.githubusercontent.com/c30b61934591d3a6fcb8718a93fd61bf840c0abd8a8d49aa0fdd4ab99567bdf4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f506f776572656425323062792d4c5559412d627269676874677265656e2e737667)](https://luya.io)[![Tests](https://github.com/luyadev/luya-module-admin-usertoken/workflows/Tests/badge.svg)](https://github.com/luyadev/luya-module-admin-usertoken/workflows/Tests/badge.svg)[![Maintainability](https://camo.githubusercontent.com/edc95e52cc80e95ce1b50b096ed191ea41c504c98b31bdab4fa3ab731d022429/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f34386263626165636534613435313832356532342f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/luyadev/luya-module-admin-usertoken/maintainability)[![Test Coverage](https://camo.githubusercontent.com/6f6a58ff28c98282e1e36fa54e574935ca762108ca0bbf7708e29580ade49992/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f34386263626165636534613435313832356532342f746573745f636f766572616765)](https://codeclimate.com/github/luyadev/luya-module-admin-usertoken/test_coverage)

Extend the LUYA Admin by providing app's which then LUYA Admin users can authenticated through the API.

[![LUYA Admin Interface](https://raw.githubusercontent.com/luyadev/luya-module-admin-usertoken/master/usertoken-screenshot.png)](https://raw.githubusercontent.com/luyadev/luya-module-admin-usertoken/master/usertoken-screenshot.png)

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

[](#installation)

Install the extension through composer:

```
composer require luyadev/luya-module-admin-usertoken
```

add to the config

```
'modules' => [
    //...
    'usertoken' => [
      'class' => 'luya\admin\usertoken\Module',
    ]
]
```

bootstrap the app:

```
'bootstrap' => [
    'luya\admin\usertoken\Bootstrap',
]
```

Run the import command afterwards:

```
./luya migrate
```

```
./luya import
```

Usage
-----

[](#usage)

1. Create an App in the Admin UI. The App identifier is used for login.
2. Use the APIs to make a Login Request for a given User (POST request to `/admin/api-usertoken-login` with fields `email`, `password` and `app`).

Caveats
-------

[](#caveats)

When a user is authenaticated and an access token is generated, all API requests with this token will be threated as this user. Also in terms of "language". You are not able to force a certain language with f.e. `_lang` since the user Admin UI Settings will be loaded. In order to change that behavior and force a certain fixed language see `Module::$forceUserLanguage` property.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 88.5% 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 ~235 days

Recently: every ~250 days

Total

6

Last Release

878d 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 (54 commits)")[![chemezov](https://avatars.githubusercontent.com/u/2368902?v=4)](https://github.com/chemezov "chemezov (3 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)")

---

Tags

hacktoberfestluyaapitokensAuthenticationloginadminluyaaccesstoken

###  Code Quality

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[auth0/auth0-php

PHP SDK for Auth0 Authentication and Management APIs.

40820.2M68](/packages/auth0-auth0-php)[auth0/login

Auth0 Laravel SDK. Straight-forward and tested methods for implementing authentication, and accessing Auth0's Management API endpoints.

2745.0M3](/packages/auth0-login)[auth0/symfony

Symfony SDK for Auth0 Authentication and Management APIs.

128738.1k](/packages/auth0-symfony)[auth0/wordpress

WordPress Plugin for Auth0

17419.5k](/packages/auth0-wordpress)

PHPackages © 2026

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