PHPackages                             waffle-commons/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. waffle-commons/security

ActiveLibrary

waffle-commons/security
=======================

Security component for Waffle framework.

0.1.0-alpha4(4mo ago)03[1 issues](https://github.com/waffle-commons/security/issues)[4 PRs](https://github.com/waffle-commons/security/pulls)1MITPHPPHP ^8.5CI passing

Since Dec 16Pushed 1mo agoCompare

[ Source](https://github.com/waffle-commons/security)[ Packagist](https://packagist.org/packages/waffle-commons/security)[ RSS](/packages/waffle-commons-security/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (7)Versions (13)Used By (1)

Waffle Commons -[![PHP Version Require](https://camo.githubusercontent.com/c77bda048d6d1617ee1a65bd89060dabfa28c64f0cb08fc92097d1c919cf18bc/687474703a2f2f706f7365722e707567782e6f72672f776166666c652d636f6d6d6f6e732f73656375726974792f726571756972652f706870)](https://packagist.org/packages/waffle-commons/security)[![PHP CI](https://github.com/waffle-commons/security/actions/workflows/main.yml/badge.svg)](https://github.com/waffle-commons/security/actions/workflows/main.yml)[![codecov](https://camo.githubusercontent.com/3d47638e96d557465d81271b48f9a9c041b63559e4b31d6d50686b119700b60f/68747470733a2f2f636f6465636f762e696f2f67682f776166666c652d636f6d6d6f6e732f73656375726974792f67726170682f62616467652e7376673f746f6b656e3d64373461633632612d373837322d343033352d386238622d626363336166313939316530)](https://codecov.io/gh/waffle-commons/security)[![Latest Stable Version](https://camo.githubusercontent.com/f045e08e69e241eb0c7c4eabaad03dc6e856d8d3c3bf50bb8636a07ea4e43023/687474703a2f2f706f7365722e707567782e6f72672f776166666c652d636f6d6d6f6e732f73656375726974792f76)](https://packagist.org/packages/waffle-commons/security)[![Latest Unstable Version](https://camo.githubusercontent.com/23ca55567a71a2056f44928ba7c8719963d3e8b82f1211de9ef9a93c5077a2cb/687474703a2f2f706f7365722e707567782e6f72672f776166666c652d636f6d6d6f6e732f73656375726974792f762f756e737461626c65)](https://packagist.org/packages/waffle-commons/security)[![Total Downloads](https://camo.githubusercontent.com/340ac1357e6ecf59ca991e5ab8a6a624e91566b2d94772bdf2587d49074657c1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f776166666c652d636f6d6d6f6e732f73656375726974792e737667)](https://packagist.org/packages/waffle-commons/security)[![Packagist License](https://camo.githubusercontent.com/4d71e26194260280804ae8745c72866e70ec38c2e57478dc6f707d302a4fc63c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f776166666c652d636f6d6d6f6e732f7365637572697479)](https://github.com/waffle-commons/security/blob/main/LICENSE.md)

Waffle Security Component
=========================

[](#waffle-security-component)

A flexible security layer for Waffle applications, providing rule-based access control and security context management.

📦 Installation
--------------

[](#-installation)

```
composer require waffle-commons/security
```

🚀 Usage
-------

[](#-usage)

### Basic Usage

[](#basic-usage)

```
use Waffle\Commons\Security\Security;
use Waffle\Commons\Config\Config;

// Initialize Security with Config
$config = new Config('/path/to/config', 'prod');
$security = new Security($config);

// Analyze an object against security rules
$security->analyze($myObject);
```

### Security Rules

[](#security-rules)

The security component analyzes objects to ensure they meet specific criteria (e.g., immutability, final classes) based on the configured security level.

Testing
-------

[](#testing)

To run the tests, use the following command:

```
composer tests
```

Contributing
------------

[](#contributing)

Contributions are welcome! Please refer to [CONTRIBUTING.md](./CONTRIBUTING.md) for details.

License
-------

[](#license)

This project is licensed under the MIT License. See the [LICENSE.md](./LICENSE.md) file for details.=========

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance83

Actively maintained with recent releases

Popularity3

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity45

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

Every ~20 days

Total

2

Last Release

134d ago

PHP version history (2 changes)0.1.0-alpha3PHP ^8.4

0.1.0-alpha4PHP ^8.5

### Community

Maintainers

![](https://www.gravatar.com/avatar/34a7557a3fb23aaf788ca3892b9b7efdf96e753264bafd0599153c9e8a921316?d=identicon)[LesliePetrimaux](/maintainers/LesliePetrimaux)

---

Top Contributors

[![supa-chayajin](https://avatars.githubusercontent.com/u/695448?v=4)](https://github.com/supa-chayajin "supa-chayajin (24 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[neos/flow

Flow Application Framework

862.0M451](/packages/neos-flow)[api-platform/state

API Platform state interfaces

223.4M57](/packages/api-platform-state)[internal/dload

Downloads binaries.

98142.7k10](/packages/internal-dload)[symfony/json-streamer

Provides powerful methods to read/write data structures from/into JSON streams.

14440.0k8](/packages/symfony-json-streamer)[rubix/server

Deploy your Rubix ML models to production with scalable stand-alone inference servers.

632.3k](/packages/rubix-server)

PHPackages © 2026

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