comphp / security
Security contracts and services for authorization, protection, and identity-aware features.
Requires
- php: ^8.5
- comphp/session: ^0.3
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.95
- phpunit/phpunit: ^13.1
This package is auto-updated.
Last update: 2026-05-18 00:12:17 UTC
README
CommonPHP Security provides security-focused contracts and services for CommonPHP applications. It supports authorization, protection, identity-aware behavior, CSRF handling, and other security concerns that sit around authentication.
The package keeps security behavior explicit and modular while allowing authentication sources, session behavior, and HTTP integrations to remain driver-based or package-specific.
Requirements
- PHP
^8.5 comphp/runtime:^0.3
Installation
Once this package is available through your Composer repositories, install it with:
composer require comphp/security
Usage
<?php // TODO: Write usage
Package Notes
This package should focus on authorization, CSRF-style protection, identity-aware checks, and security service contracts. Authentication sources and login behavior may be provided by comphp/auth and related drivers.
Error Handling
Security failures should use package-specific exceptions or explicit result objects so applications can distinguish denied access from runtime failures.
Documentation
License
MIT. See LICENSE.md.