Download the PHP package tourze/symfony-circuit-breaker-bundle without Composer

On this page you can find all versions of the php package tourze/symfony-circuit-breaker-bundle. 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 symfony-circuit-breaker-bundle

Symfony Circuit Breaker Bundle

中文

Latest Version PHP Version Require

Build Status Coverage Status

Symfony熔断器Bundle,为Symfony应用提供高性能、可扩展的熔断器功能, 支持单机和集群环境,帮助您构建更健壮的微服务应用。

Table of Contents

功能特性

安装

通过Composer安装:

在Symfony项目中注册Bundle:

快速开始

使用注解(Attribute)方式

在控制器方法上使用熔断器注解:

直接使用服务

通过依赖注入使用熔断器服务:

使用带熔断功能的HTTP客户端

如果需要手动获取带熔断功能的HTTP客户端:

Configuration

Environment Variable Configuration

Circuit breaker supports configuration through environment variables, which can be set in the .env file:

Configuration Parameters

Dependencies

Required Dependencies

Optional Dependencies

Storage Backends

Redis Storage (Recommended)

For production environments with high performance requirements:

Doctrine Storage

When Redis is unavailable, automatically fallback to Doctrine storage:

Memory Storage

For development and testing only, does not support multiple instances.

命令行工具

查看熔断器配置信息:

查看特定服务的熔断状态:

重置特定服务的熔断状态:

强制打开熔断器(测试降级功能):

强制关闭熔断器:

高级用法

手动管理熔断状态

你可以通过依赖注入获取熔断器服务,并手动管理熔断状态:

自定义HTTP客户端降级处理

你可以通过自定义的HTTP客户端降级工厂来处理熔断时的HTTP请求:

然后创建你的降级工厂:

贡献指南

我们欢迎任何形式的贡献!请在贡献之前阅读以下指南:

如何贡献

  1. 报告问题:如果您发现了 bug 或有功能请求,请在 GitHub Issues 中创建一个 issue
  2. 代码贡献
    • Fork 本仓库
    • 创建新的功能分支 (git checkout -b feature/amazing-feature)
    • 提交您的更改 (git commit -m 'Add some amazing feature')
    • 推送到分支 (git push origin feature/amazing-feature)
    • 创建 Pull Request

代码风格

测试要求

Pull Request 指南

参考资料

许可证

本包基于 MIT 许可证。详情请参见 LICENSE 文件。


All versions of symfony-circuit-breaker-bundle with dependencies

PHP Build Version
Package Version
Requires ext-redis Version *
doctrine/dbal Version ^4.0
psr/log Version ^3|^2|^1
symfony/cache Version ^7.3
symfony/config Version ^7.3
symfony/console Version ^7.3
symfony/dependency-injection Version ^7.3
symfony/event-dispatcher Version ^7.3
symfony/event-dispatcher-contracts Version ^3
symfony/framework-bundle Version ^7.3
symfony/http-client Version ^7.3
symfony/http-client-contracts Version ^3.6
symfony/http-foundation Version ^7.3
symfony/http-kernel Version ^7.3
symfony/property-access Version ^7.3
symfony/routing Version ^7.3
symfony/yaml Version ^7.3
tourze/doctrine-indexed-bundle Version 1.0.*
tourze/enum-extra Version 1.0.*
tourze/redis-dedicated-connection-bundle Version 1.0.*
tourze/symfony-dependency-service-loader Version 1.0.*
tourze/symfony-routing-auto-loader-bundle 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 tourze/symfony-circuit-breaker-bundle contains the following files

Loading the files please wait ...