PHP code example of adata-team / healthchecker

1. Go to this page and download the library: Download adata-team/healthchecker 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/ */

    

adata-team / healthchecker example snippets




return [
    'router' => [
        'group_prefix' => 'health',
        'check_prefix' => 'check',
        'check_name'   => 'healthCheck',
        'url'          => '/health/check',
    ],
];
regexp
group_prefix - the name of the route group, for health
check_prefix - health route prefix
check_name   - route name
url          - url where healthcheck will be available

$app->register(Adata\HealthChecker\HealthCheckerProvider::class);

$app->configure('health');