PHP code example of ector / checker

1. Go to this page and download the library: Download ector/checker library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

ector / checker example snippets


if ($this->checker === null && $this->context->controller instanceof AdminController) {
    $this->checker = $this->get("ector.checker");
}

public function hookActionAdminControllerInitAfter($params)
{
    $controller = $params["controller"];
    $this->checker->healthCheck($controller);
}