ector / checker
Check the key validity
Fund package maintenance!
Ector
Requires
- php: ^8.1
- guzzlehttp/guzzle: ^7.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.21.1
- phpunit/phpunit: ^10.3.2
- spatie/ray: ^1.28
This package is auto-updated.
Last update: 2024-12-29 04:36:40 UTC
README
Composer dependency to check if a Ector instance is valid.
Installation
You can install the package via composer:
composer require ector/checker
Usage
Setup class as a symfony service
# config/admin/services.yml services: _defaults: public: true ector.checker: class: 'Ector\Checker\Checker'
Inject the Ector/Checker via symfony container in module __construct
if ($this->checker === null && $this->context->controller instanceof AdminController) { $this->checker = $this->get("ector.checker"); }
Run the healtcheck in right hook
public function hookActionAdminControllerInitAfter($params) { $controller = $params["controller"]; $this->checker->healthCheck($controller); }
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Credits
License
The MIT License (MIT). Please see License File for more information.