Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rymanalu/laravel-circuit-breaker

Circuit Breaker pattern implementation in Laravel 5.
https://github.com/rymanalu/laravel-circuit-breaker

Last synced: about 1 month ago
JSON representation

Circuit Breaker pattern implementation in Laravel 5.

Awesome Lists containing this project

README

        

# Laravel 5 Circuit Breaker

[![Build Status](https://travis-ci.org/rymanalu/laravel-circuit-breaker.svg?branch=master)](https://travis-ci.org/rymanalu/laravel-circuit-breaker)

This package provides an implementation of Circuit Breaker pattern for Laravel 5.

## Installation
First, install this package:
```
composer require rymanalu/laravel-circuit-breaker
```

Next, add the ServiceProvider to the providers array in `config/app.php`:
```php
Rymanalu\LaravelCircuitBreaker\CircuitBreakerServiceProvider::class,
```

You can use the facade for shorter code. Add this to your aliases:
```php
'CircuitBreaker' => Rymanalu\LaravelCircuitBreaker\CircuitBreakerFacade::class,
```

## APIs
```php