PHP CircuitBreaker implementation