Download the PHP package monkeyscloud/monkeyslegion-auth without Composer
On this page you can find all versions of the php package monkeyscloud/monkeyslegion-auth. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download monkeyscloud/monkeyslegion-auth
More information about monkeyscloud/monkeyslegion-auth
Files in monkeyscloud/monkeyslegion-auth
Download monkeyscloud/monkeyslegion-auth
More information about monkeyscloud/monkeyslegion-auth
Files in monkeyscloud/monkeyslegion-auth
Vendor monkeyscloud
Package monkeyslegion-auth
Short Description High-performance authentication & authorization: multi-guard, JWT, RBAC, OAuth, 2FA, API keys, passkeys
License MIT
Package monkeyslegion-auth
Short Description High-performance authentication & authorization: multi-guard, JWT, RBAC, OAuth, 2FA, API keys, passkeys
License MIT
Please rate this library. Is it a good library?
Informations about the package monkeyslegion-auth
MonkeysLegion Auth v2
Multi-guard, attribute-first authentication and authorization for the MonkeysLegion framework. Ground-up rebuild for PHP 8.4 with property hooks, typed constants, and zero hard dependencies.
Features
| Feature | Status |
|---|---|
| Multi-Guard System | JWT, Session, API Key, WebAuthn/Passkey, Composite (try multiple in order) |
| Attribute-First Auth | #[Guard], #[Authenticated], #[Authorize], #[RequiresRole], #[RequiresPermission], #[RateLimit], #[Passkey] |
| JWT Service | HS256/RS256, token families, refresh rotation attack detection |
| Session Guard | Session fixation prevention, token version validation, remember-me |
| Policy Gate | allows(), denies(), authorize(), inspect() with deny reasons |
| RBAC | Hierarchical roles, wildcard permissions, super-admin, decoupled via RoleRepositoryInterface |
| Password Hasher | NIST SP 800-63B policy engine, Argon2ID/bcrypt, auto-rehash |
| Rate Limiting | Per-route, per-user, configurable via attributes |
| Two-Factor Auth | TOTP (RFC 6238), backup/recovery codes |
| PSR-15 Middleware | Authentication, Authorization, Rate Limiting — all attribute-aware |
| PHP 8.4 Native | Property hooks, typed constants, readonly DTOs |
Requirements
- PHP 8.4 or higher
firebase/php-jwt^7.0psr/http-message^2.0
Installation
Architecture
Quick Start
JWT Guard (Stateless)
Session Guard (Stateful)
WebAuthn / Passkey Guard
Integrates with MonkeysLegion-WebAuthn for passwordless authentication:
Mark routes/controllers as requiring passkey authentication:
Attribute-Based Security
Policy Gate
Password Hashing with Policy
Security Features
- Token family tracking — detects refresh token reuse attacks
- CSPRNG token IDs —
random_bytes(16)for all token identifiers - Session fixation prevention — session regenerated on every login
- Token versioning — increment version to invalidate all sessions/tokens globally
- Timing-safe comparisons —
hash_equalsfor all credential/token checks - Account lockout — configurable failed attempt limits
- Audit trail — all auth events include correlation IDs
Testing
License
MIT © MonkeysCloud
All versions of monkeyslegion-auth with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.4
firebase/php-jwt Version ^7.0
psr/event-dispatcher Version ^1.0
psr/http-message Version ^2.0
psr/http-server-handler Version ^1.0
psr/http-server-middleware Version ^1.0
psr/simple-cache Version ^3.0
monkeyscloud/monkeyslegion-session Version *
firebase/php-jwt Version ^7.0
psr/event-dispatcher Version ^1.0
psr/http-message Version ^2.0
psr/http-server-handler Version ^1.0
psr/http-server-middleware Version ^1.0
psr/simple-cache Version ^3.0
monkeyscloud/monkeyslegion-session Version *
The package monkeyscloud/monkeyslegion-auth contains the following files
Loading the files please wait ...