PHP Package: prestashop/circuit-breaker

Efficient PHP library for implementing circuit breaker design pattern to improve application resilience and fault tolerance.

Current Version: 4.0.3
Last Updated: 2024-11-21
PHP Requirement: >=7.2.34
Dependencies:
phpunit/phpunit
symfony/http-kernel
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

Circuit Breaker is a PHP library that helps developers enhance their application's reliability by providing a mechanism to handle failures gracefully. By utilizing this library, you can easily protect your system from cascading failures and improve overall system stability. With features like configurable thresholds, automatic recovery, and detailed monitoring, Circuit Breaker is a valuable tool for building robust and fault-tolerant applications.

📦 Show all available classes🔗 View on GitHub

Download Latest Version: 4.0.3

Download Download v4.0.3

Code Integration Example

Make sure to include the correct namespace and class paths for proper usage.

<?php
// Example from PHPlibraries.com
require_once 'libs/prestashop/circuit-breaker/4.0.3/loader.php';
require_once 'libs/sebastianbergmann/phpunit/12.4.1/loader.php';
require_once 'libs/symfony/http-kernel/7.3.4/loader.php';

use Prestashop\CircuitBreaker\CircuitBreaker;
use Symfony\Component\HttpKernel\HttpKernel;
use PHPUnit\Framework\TestCase;

$obj = new CircuitBreaker();
echo '✅ Test OK: ' . get_class($obj);
?>

We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.

Community Discussion

Ask questions, share tips, or report issues below.