PHP code example of gabrielanhaia / php-circuit-breaker
1. Go to this page and download the library: Download gabrielanhaia/php-circuit-breaker 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/ */
gabrielanhaia / php-circuit-breaker example snippets
use GabrielAnhaia\PhpCircuitBreaker\Contract\Alert;
class LoggerAlert implements Alert {
public function emmitOpenCircuit(string $serviceName)
{
error_log("Circuit opened: {$serviceName}");
}
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.