1. Go to this page and download the library: Download nordsec/status-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/ */
nordsec / status-checker example snippets
$container[StatusCheckerService::class] = function (Container $container) {
$configuration = $container['config'];
return new StatusCheckerService([
new DatabaseChecker('database.default_connection', $configuration['database']['default']),
new RabbitMqChecker('rabbitmq.amqp_server', $configuration['queue']['connection_nordvpn_core']),
]);
};
$container[StatusCheckCommand::class] = function (Container $container) {
return new StatusCheckCommand([
$container[StatusCheckerService::class],
]);
};
$container[ConsoleApplication::class] = $container->extend(
ConsoleApplication::class,
function (ConsoleApplication $consoleApplication, Container $container) {
$consoleApplication->add($container[StatusCheckCommand::class]);
return $consoleApplication;
}
);
$container[StatusCheckerService::class] = function (Container $container) {
$configuration = $container['config'];
return new StatusCheckerService([
new DatabaseChecker('database.default_connection', $configuration['database']['default']),
new RabbitMqChecker('rabbitmq.nordvpn_core', $configuration['queue']['connection_nordvpn_core']),
]);
};
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.