Download the PHP package love-oss/resiliency without Composer

On this page you can find all versions of the php package love-oss/resiliency. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package resiliency

Resiliency, an implementation for resilient and modern PHP applications

codecov PHPStan Psalm Build Status

Main principles

circuit breaker

This library is compatible with PHP 7.4+.

Installation

Use

You need to configure a system for the Circuit Breaker:

You'd better return the same type of response expected from your distant call.

Clients

Resiliency library supports both Guzzle (v6 & v7) and HttpClient Component from Symfony (v4 & v5).

Monitoring

This library provides a minimalist system to help you monitor your circuits.

Tests

Code quality

This library has high quality standards:

We also use PHPQA to check the Code quality during the CI management of the contributions:

I've heard of the PrestaShop Circuit Breaker: what library should I use ?

Welcome, that's an interesting question !

Above all, I must say that I'm the former author of the PrestaShop Circuit Breaker library and I have decided to fork my own library to be able to improve it without the constraints of the PrestaShop CMS main project.

As of now (June, 2021), these libraries have a lot in common !

They share almost the same API, and the PrestaShop Core Team have created multiple implementations of Circuit Breaker interface and Factory :

  1. They maintain a version compatible with PHP 7.2+ and Symfony 4 but not (yet ?) with PHP 8 and Symfony 5 ;
  2. They have a dependency on their own package named php-dev-tools ;
  3. They maintain an implementation of Storage using Doctrine Cache library ;
  4. They don't have a Symfony HttpClient implementation ;
  5. For the events, I'm not sure as their implementation make the list difficult to establish ;
  6. They don't provide a mecanism to reset and restore a Circuit Breaker ;
  7. They don't provide a mecanism to monitor the activity of a Circuit Breaker ;
  8. They have removed Psalm from their CI and they don't use PHPQA ;
  9. They have added declare(strict_types=1); on all the files ;
  10. They don't declare a .gitattributes file, this means that all tests are downloaded when we require their library ;

All right ... but this don't tell me what library should I use in my project !


All versions of resiliency with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4|^8.0
ext-json Version *
psr/event-dispatcher Version ^1.0
psr/simple-cache Version ^1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package love-oss/resiliency contains the following files

Loading the files please wait ....