PHP code example of chocofamilyme / phalcon-healthcheck

1. Go to this page and download the library: Download chocofamilyme/phalcon-healthcheck 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/ */

    

chocofamilyme / phalcon-healthcheck example snippets




use Phalcon\Di\FactoryDefault;
use Phalcon\Mvc\Micro;
use Chocofamily\PhalconHealthCheck\Providers\HealthCheckServiceProvider;

$container   = new FactoryDefault();
$application = new Micro($container);

$container->setShared('application', $application);

$container->register(new HealthCheckServiceProvider());


return [
    'componentChecks' => [
        'YOURCUSTOMCHECK' => YourCustomCheck::class
    ]
]