PHPackages                             rudra/auth - 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. rudra/auth

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

rudra/auth
==========

Authentication module for Rudra framework

v26.1(4mo ago)15251MPL-2.0PHPPHP &gt;=8.3CI passing

Since Jun 28Pushed 4mo ago2 watchersCompare

[ Source](https://github.com/Jagepard/Rudra-Auth)[ Packagist](https://packagist.org/packages/rudra/auth)[ RSS](/packages/rudra-auth/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (4)Dependencies (4)Versions (5)Used By (1)

[![PHPunit](https://github.com/Jagepard/Rudra-Auth/actions/workflows/php.yml/badge.svg)](https://github.com/Jagepard/Rudra-Auth/actions/workflows/php.yml)[![Maintainability](https://camo.githubusercontent.com/d59503d959a936ee51a69c1a886bdd55f5dec732e482b24eba7e575b0346f0ad/68747470733a2f2f716c74792e73682f6261646765732f31333436643737632d623766312d343438382d623733632d6234373538323136363036312f6d61696e7461696e6162696c6974792e737667)](https://qlty.sh/gh/Jagepard/projects/Rudra-Auth)[![CodeFactor](https://camo.githubusercontent.com/7ebf99e294676ca55b9d5da3ff8ec01341ba064b7caec297acb1df2e9cd88887/68747470733a2f2f7777772e636f6465666163746f722e696f2f7265706f7369746f72792f6769746875622f6a616765706172642f72756472612d617574682f6261646765)](https://www.codefactor.io/repository/github/jagepard/rudra-auth)[![Coverage Status](https://camo.githubusercontent.com/982139b149bb9e015cf8fb7731d358a7b7c5dcdc64fcd15a54982873f279fa04/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f4a616765706172642f52756472612d417574682f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/Jagepard/Rudra-Auth?branch=master)
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

[](#)

Rudra-Auth | [API](https://github.com/Jagepard/Rudra-Auth/blob/master/docs.md "Documentation API")
==================================================================================================

[](#rudra-auth--api)

### Authorization

[](#authorization)

#### Install / Установка

[](#install--установка)

`composer require rudra/auth`

##### User registration / Регистрация пользователя

[](#user-registration--регистрация-пользователя)

```
$user = [
    "email"    => "user@email.com",
    "password" => Auth::bcrypr("password")
];
```

##### Getting a user from the database / Получение пользователя из базы данных

[](#getting-a-user-from-the-database--получение-пользователя-из-базы-данных)

```
$user = [
    "email"    => "user@email.com",
    "password" => "password_hash"
];
```

##### Usage / Использование

[](#usage--использование)

```
use Rudra\Auth\AuthFacade as Auth;
```

##### Authentication / Аутентификация

[](#authentication--аутентификация)

```
Auth::authentication(
    $user,
    "password",
    ["admin/dashboard", "login"],
    ["error" => "Wrong access data"]
);
```

##### Logout from authentication session / Выход из сеанса аутентификации

[](#logout-from-authentication-session--выход-из-сеанса-аутентификации)

```
Auth::logout();
```

License
-------

[](#license)

This project is licensed under the **Mozilla Public License 2.0 (MPL-2.0)** — a free, open-source license that:

- Requires preservation of copyright and license notices,
- Allows commercial and non-commercial use,
- Requires that any modifications to the original files remain open under MPL-2.0,
- Permits combining with proprietary code in larger works.

📄 Full license text: [LICENSE](./LICENSE)
🌐 Official MPL-2.0 page:

---

Проект распространяется под лицензией **Mozilla Public License 2.0 (MPL-2.0)**. Это означает:

- Вы можете свободно использовать, изменять и распространять код.
- При изменении файлов, содержащих исходный код из этого репозитория, вы обязаны оставить их открытыми под той же лицензией.
- Вы **обязаны сохранять уведомления об авторстве** и ссылку на оригинал.
- Вы можете встраивать код в проприетарные проекты, если исходные файлы остаются под MPL.

📄 Полный текст лицензии (на английском): [LICENSE](./LICENSE)
🌐 Официальная страница:

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance76

Regular maintenance activity

Popularity14

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 99.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 ~60 days

Total

4

Last Release

140d ago

Major Versions

v25.12 → v26.12025-12-26

### Community

Maintainers

![](https://www.gravatar.com/avatar/75e65761bdd94035d1c783773a706d5722ce3164fe55d9722581c2cb4a642d8c?d=identicon)[jagepard](/maintainers/jagepard)

---

Top Contributors

[![Jagepard](https://avatars.githubusercontent.com/u/4591345?v=4)](https://github.com/Jagepard "Jagepard (393 commits)")[![scrutinizer-auto-fixer](https://avatars.githubusercontent.com/u/6253494?v=4)](https://github.com/scrutinizer-auto-fixer "scrutinizer-auto-fixer (1 commits)")

---

Tags

authrudraauthAuthenticationrudra

### Embed Badge

![Health badge](/badges/rudra-auth/health.svg)

```
[![Health](https://phpackages.com/badges/rudra-auth/health.svg)](https://phpackages.com/packages/rudra-auth)
```

###  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)[php-open-source-saver/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

8359.8M53](/packages/php-open-source-saver-jwt-auth)[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)[opauth/opauth

Multi-provider authentication framework for PHP

1.6k783.4k58](/packages/opauth-opauth)

PHPackages © 2026

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