sfynx-project/tool-circuitbreaker-bundle

此包提供处理程序,以快速在微服务架构中开发电路断路器模式

v2.8.5 2019-04-18 21:12 UTC

This package is not auto-updated.

Last update: 2024-09-14 18:58:40 UTC


README

Latest Stable Version Minimum PHP Version License

Sfynx Circuit Breaker Bundle 是 Symfony3/4 提供的,用于快速在微服务架构中开发电路断路器模式的处理程序。

文档

该文档的源文件存储在此包的 Resources/doc/ 文件夹中,并在 symfony.com 上提供。

安装

a) 前提条件

此版本的包需要 php 7.2+。

b) 配置

在您的 composer.json 文件中添加依赖项

"require": {
    ...
    "sfynx-project/tool-circuitbreaker-bundle": "dev-master"
},

安装这些新依赖项

$ composer update --no-interaction --with-dependencies

在您的应用程序内核中启用包

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = [
        // ...
        new Sfynx\CircuitBreakerBundle\SfynxCircuitBreakerBundle(),
    ];
}

测试

执行单元测试

$ phpunit --coverage-text

报告问题或功能请求

问题和功能请求在 Github 问题跟踪器 中跟踪。

当报告错误时,最好在基于 Symfony 标准版 的基本项目中重现它,以便包的开发者通过克隆它并遵循一些步骤来重现问题。

许可证

版权所有 © 2018, contact@pi-groupe.net. 此包受 GNU Lesser General Public License 的许可,允许与使用 MIT 许可证的软件结合和重新分发

SFYNX 是一个在 LGPL 许可下分发的免费软件。此许可证保证了以下自由

- the freedom to install and use SFYNX for any usage whatsoever;
- the freedom to look into SFYNX’s code and adapt it to your own needs by modifying the source code, to which you have direct access since SFYNX is entirely developed in PHP;
- the freedom to distribute copies of the software to anyone, provided you do not modify or delete the license;
- the freedom to enhance SFYNX and to distribute your enhancements among the public so that the entire community may benefit from it, provided you do not modify or delete the license.
  • 此应用程序是免费软件;您可以根据自由软件基金会发布的 GNU Lesser General Public License 的条款分发和/或修改它;版本 2 或(根据您的选择)任何后续版本。

  • 此软件的目的是使其有用,但没有任何保证;甚至没有针对商业或针对特定目的的定制隐含保证。有关更多详细信息,请参阅 GNU Lesser General Public License。

  • 必须与此软件一起提供 GNU Lesser General Public License 的副本;如果没有,请写信给自由软件基金会 Inc.,675 Mass Ave,剑桥,MA 02139,美国。

  • 您可以从 http://pigroupe.github.io/cmf-sfynx/ 下载此软件;您还可以在此网站上找到完整的用户手册和附加信息。

  • 根据法国法律,SFYNX 受知识产权法典(CPI)中规定的法规的约束。SFYNX 内核是作者的合作作品,如上所述,根据知识产权法典第 L 113-1 条列出。整个 SFYNX 项目是根据知识产权法典第 L 113-2 条和第 L 113-5 条的集体作品。作者根据 GNU 公共许可证规定的权利和义务向公众发布作品。

关于

SfynxCircuitBreakerBundle 是 PI-GROUPE 开发项目 的倡议。另请参阅 贡献者 列表。

更多信息 :