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
Requires
- php: ^8.5
- psr/container: ^2.0
- waffle-commons/contracts: 0.1.0-alpha4
- waffle-commons/utils: 0.1.0-alpha4
Requires (Dev)
- carthage-software/mago: ^1.0.0-rc
- php-mock/php-mock-phpunit: ^2.13
- phpunit/phpunit: ^12.0
- vimeo/psalm: ^6.13
This package is auto-updated.
Last update: 2026-01-06 15:23:23 UTC
README
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.=========