twoh / security-check
This project contains the basic Implementation of Security checks for the rest api.
1.0.2
2025-03-06 11:49 UTC
Requires
- php: ^8.3
- twoh/logger: ^1
Requires (Dev)
- phpunit/phpunit: ^11
- roave/security-advisories: dev-latest
This package is auto-updated.
Last update: 2025-03-06 12:59:56 UTC
README
About Security Check
This project contains the basic Implementation of Security checks for the rest api.
Requirements
- PHP 8.3 or higher
- Composer
Installation
composer req twoh/security-check
Usage
Running Tests
To verify that the tests are passing, run the following command:
vendor/bin/phpunit
Documentation
It is possible to use the SecurityCheckTrait in your project. The SecurityCheckTrait provides methods to check the request method and content type. Below is a guide on how to use this trait in your custom code. Also you can init our SecurityService
class to perform the security checks by calling the performSecurityChecks
function.