waffle-commons/security

Security component for Waffle framework.

Maintainers

Package info

github.com/waffle-commons/security

pkg:composer/waffle-commons/security

Statistics

Installs: 3

Dependents: 1

Suggesters: 0

Stars: 0

Open Issues: 5

0.1.0-alpha4 2026-01-05 10:37 UTC

README

Waffle Commons -PHP Version Require PHP CI codecov Latest Stable Version Latest Unstable Version Total Downloads Packagist License

Waffle Security Component

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

📦 Installation

composer require waffle-commons/security

🚀 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

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

Testing

To run the tests, use the following command:

composer tests

Contributing

Contributions are welcome! Please refer to CONTRIBUTING.md for details.

License

This project is licensed under the MIT License. See the LICENSE.md file for details.=========