PHPackages                             spiral/security - 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. [Security](/categories/security)
4. /
5. spiral/security

ActiveLibrary[Security](/categories/security)

spiral/security
===============

Spiral, RBAC security layer

3.16.1(2mo ago)53.0M—2.1%13MITPHPPHP &gt;=8.1CI failing

Since Jan 15Pushed 2mo ago3 watchersCompare

[ Source](https://github.com/spiral/security)[ Packagist](https://packagist.org/packages/spiral/security)[ Docs](https://spiral.dev)[ GitHub Sponsors](https://github.com/sponsors/spiral)[ RSS](/packages/spiral-security/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (6)Versions (107)Used By (3)

Spiral, Security RBAC layer, NIST based
=======================================

[](#spiral-security-rbac-layer-nist-based)

[![PHP Version Require](https://camo.githubusercontent.com/6b3569de2ee75cd53de22e6ce6cf0fe1a6479fade2d13440839fe9f2c1515a4e/68747470733a2f2f706f7365722e707567782e6f72672f73706972616c2f73656375726974792f726571756972652f706870)](https://packagist.org/packages/spiral/security)[![Latest Stable Version](https://camo.githubusercontent.com/6dcbb9a3c70f12cfff63b6316e794f1ef122446adda93a64ed4993e7ba548525/68747470733a2f2f706f7365722e707567782e6f72672f73706972616c2f73656375726974792f762f737461626c65)](https://packagist.org/packages/spiral/security)[![phpunit](https://github.com/spiral/security/actions/workflows/phpunit.yml/badge.svg)](https://github.com/spiral/security/actions)[![psalm](https://github.com/spiral/security/actions/workflows/psalm.yml/badge.svg)](https://github.com/spiral/security/actions)[![Codecov](https://camo.githubusercontent.com/7ec6c902693ec2a6ec9977f76c44baf6624b186b376ec38d2344e71149695bd2/68747470733a2f2f636f6465636f762e696f2f67682f73706972616c2f73656375726974792f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/spiral/security/)[![Total Downloads](https://camo.githubusercontent.com/dd7c9e6f47a613a37b827e577965c7734a9228df1d3702a52fcecd25b44978b3/68747470733a2f2f706f7365722e707567782e6f72672f73706972616c2f73656375726974792f646f776e6c6f616473)](https://packagist.org/packages/spiral/security)[![type-coverage](https://camo.githubusercontent.com/d2c2db73630d30b6731fd4fca587c63acb8604aaac572fda389511ce24f16455/68747470733a2f2f73686570686572642e6465762f6769746875622f73706972616c2f73656375726974792f636f7665726167652e737667)](https://shepherd.dev/github/spiral/security)[![psalm-level](https://camo.githubusercontent.com/cbc57995b76e1f8b9ee8e10afe8712a6d9decbffb58c0dde90160cac95372231/68747470733a2f2f73686570686572642e6465762f6769746875622f73706972616c2f73656375726974792f6c6576656c2e737667)](https://shepherd.dev/github/spiral/security)[![](https://camo.githubusercontent.com/4442b73a11753b80fdd7b442ddbfaf8383902c8b9ffa66ed1718e8c62e102f2e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646973636f72642d636861742d6d6167656e74612e737667)](https://discord.gg/8bZsjYhVVk)

**[Documentation](https://spiral.dev/docs/security-rbac)** | [Framework Bundle](https://github.com/spiral/framework)

License:
--------

[](#license)

MIT License (MIT). Please see [`LICENSE`](./LICENSE) for more information. Maintained by [Spiral Scout](https://spiralscout.com).

###  Health Score

65

—

FairBetter than 99% of packages

Maintenance83

Actively maintained with recent releases

Popularity48

Moderate usage in the ecosystem

Community25

Small or concentrated contributor base

Maturity88

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 92.9% 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 ~36 days

Recently: every ~82 days

Total

104

Last Release

84d ago

Major Versions

0.1.3 → v1.0.02017-02-05

v1.0.6 → v2.0.02018-08-25

2.14.1 → 3.0.02022-09-13

PHP version history (6 changes)v1.0.0PHP &gt;=7.0

v2.0.0PHP &gt;=7.1

v2.2.0PHP ^7.2

2.7.0PHP &gt;=7.2

2.10.0PHP &gt;=7.4

3.0.0PHP &gt;=8.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/796136?v=4)[Anton Tsitou](/maintainers/wolfy-j)[@wolfy-j](https://github.com/wolfy-j)

---

Top Contributors

[![wolfy-j](https://avatars.githubusercontent.com/u/796136?v=4)](https://github.com/wolfy-j "wolfy-j (3447 commits)")[![spiralbot](https://avatars.githubusercontent.com/u/100867204?v=4)](https://github.com/spiralbot "spiralbot (125 commits)")[![SerafimArts](https://avatars.githubusercontent.com/u/2461257?v=4)](https://github.com/SerafimArts "SerafimArts (100 commits)")[![vvval](https://avatars.githubusercontent.com/u/11367763?v=4)](https://github.com/vvval "vvval (14 commits)")[![alexndr-novikov](https://avatars.githubusercontent.com/u/7372962?v=4)](https://github.com/alexndr-novikov "alexndr-novikov (4 commits)")[![butschster](https://avatars.githubusercontent.com/u/773481?v=4)](https://github.com/butschster "butschster (4 commits)")[![rauanmayemir](https://avatars.githubusercontent.com/u/9691?v=4)](https://github.com/rauanmayemir "rauanmayemir (4 commits)")[![tuneyourserver](https://avatars.githubusercontent.com/u/7487510?v=4)](https://github.com/tuneyourserver "tuneyourserver (2 commits)")[![roxblnfk](https://avatars.githubusercontent.com/u/4152481?v=4)](https://github.com/roxblnfk "roxblnfk (2 commits)")[![R3VoLuT1OneR](https://avatars.githubusercontent.com/u/1111188?v=4)](https://github.com/R3VoLuT1OneR "R3VoLuT1OneR (2 commits)")[![samsonasik](https://avatars.githubusercontent.com/u/459648?v=4)](https://github.com/samsonasik "samsonasik (1 commits)")[![lex111](https://avatars.githubusercontent.com/u/4408379?v=4)](https://github.com/lex111 "lex111 (1 commits)")[![jwdeitch](https://avatars.githubusercontent.com/u/7282720?v=4)](https://github.com/jwdeitch "jwdeitch (1 commits)")[![jdrieghe](https://avatars.githubusercontent.com/u/12606789?v=4)](https://github.com/jdrieghe "jdrieghe (1 commits)")[![ncou](https://avatars.githubusercontent.com/u/16743322?v=4)](https://github.com/ncou "ncou (1 commits)")[![MatthewHallCom](https://avatars.githubusercontent.com/u/1230091?v=4)](https://github.com/MatthewHallCom "MatthewHallCom (1 commits)")[![nikolaev-dm](https://avatars.githubusercontent.com/u/52159053?v=4)](https://github.com/nikolaev-dm "nikolaev-dm (1 commits)")[![EvgenyBarinov](https://avatars.githubusercontent.com/u/65846823?v=4)](https://github.com/EvgenyBarinov "EvgenyBarinov (1 commits)")

---

Tags

nistrbacsecurityspiral

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/spiral-security/health.svg)

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

###  Alternatives

[defuse/php-encryption

Secure PHP Encryption Library

3.9k162.4M214](/packages/defuse-php-encryption)[mews/purifier

Laravel 5/6/7/8/9/10 HtmlPurifier Package

2.0k16.7M113](/packages/mews-purifier)[robrichards/xmlseclibs

A PHP library for XML Security

41478.1M118](/packages/robrichards-xmlseclibs)[bjeavons/zxcvbn-php

Realistic password strength estimation PHP library based on Zxcvbn JS

87117.5M63](/packages/bjeavons-zxcvbn-php)[illuminate/encryption

The Illuminate Encryption package.

9229.7M280](/packages/illuminate-encryption)[paragonie/hidden-string

Encapsulate strings in an object to hide them from stack traces

7410.6M39](/packages/paragonie-hidden-string)

PHPackages © 2026

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