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

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

sqrt-pro/auth
=============

Auth is part of SQRT Framework

0.1(11y ago)01.3k1MITPHPPHP &gt;=5.3.0

Since May 20Pushed 10y ago2 watchersCompare

[ Source](https://github.com/sqrt-pro/Auth)[ Packagist](https://packagist.org/packages/sqrt-pro/auth)[ Docs](http://fw.sqrt.pro)[ RSS](/packages/sqrt-pro-auth/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (2)Versions (2)Used By (1)

SQRT\\Auth
==========

[](#sqrtauth)

Компонент для авторизации. Авторизация осуществляется путем генерации токена и сохранения его в БД и сессии\\cookies пользователя. При повторном заходе осуществляется попытка найти пользователя по токену.

Класс Auth имеет основные методы для работы с авторизацией:

- login($login, $password, $remindme = true) - авторизация по логину\\паролю
- loginUser($user, $remindme = true) - авторизация по объекту пользователя
- logout() - выход пользователя
- getUser() - получить объект авторизованного пользователя

Для гибкости реализации, методы поиска пользователей сделаны абстрактными и не завязанными на какую-либо конкретную реализацию логики:

- findUser($login, $password) - поиск пользователя по логину\\паролю
- findUserByToken($token) - поиск пользователя по токену
- createToken($expire = null) - создание и сохранение токена
- deleteToken($token) - инвалидация (удаление) токена

Для сохранения токена в Cookies объект Auth подготавливает объект Cookie, который должны быть установлены пользователю. Если есть cookie, требующий установки, его можно получить в методе `getCookieForResponse()`.

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity48

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

Unknown

Total

1

Last Release

4062d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8718914?v=4)[Квадратный Корень](/maintainers/sqrt-pro)[@sqrt-pro](https://github.com/sqrt-pro)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[symfony/security-bundle

Provides a tight integration of the Security component into the Symfony full-stack framework

2.5k185.6M2.4k](/packages/symfony-security-bundle)[symfony/security-http

Symfony Security Component - HTTP Integration

1.7k177.2M383](/packages/symfony-security-http)[symfony/http-kernel

Provides a structured process for converting a Request into a Response

8.1k869.4M8.8k](/packages/symfony-http-kernel)[symfony/framework-bundle

Provides a tight integration between Symfony components and the Symfony full-stack framework

3.6k251.7M11.6k](/packages/symfony-framework-bundle)[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M388](/packages/easycorp-easyadmin-bundle)[api-platform/core

Build a fully-featured hypermedia or GraphQL API in minutes!

2.6k51.2M338](/packages/api-platform-core)

PHPackages © 2026

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