waffle-commons/security

Security component for Waffle framework.

Installs: 2

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/waffle-commons/security

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

This package is auto-updated.

Last update: 2026-01-06 15:23:23 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.=========