Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Phystrix Bundle

Phystrix Bundle Laravel Package

pixelfederation/phystrix-bundle

Symfony bundle integrating Phystrix, the PHP circuit breaker library, to make service calls fault tolerant. Configure circuit breakers, fallbacks, and monitoring to isolate failures and keep applications responsive.

View on GitHub
Deep Wiki
Context7

Phystrix integration with Symfony2 framework. This bundle provides phystrix command factory service: phystrix.command_factory with default configuration.

Frequently asked questions about Phystrix Bundle
Is pixelfederation/phystrix-bundle a Laravel package?
No. It is a Symfony bundle that integrates Phystrix, the PHP port of Netflix Hystrix, into Symfony applications. Laravel developers can use the underlying Phystrix library directly or look for Laravel-specific circuit breaker packages.
How do I install pixelfederation/phystrix-bundle with Composer?
Install it via Composer using composer require pixelfederation/phystrix-bundle, then register the bundle in your Symfony application as described in the README. Configuration is typically done through Symfony YAML files for named command keys and circuit breaker settings.
Does phystrix-bundle support Laravel 10 or Laravel 11?
It is not a Laravel package, so it does not provide Laravel service providers or Laravel-native configuration. For Laravel 10 or 11 you would need to integrate the Phystrix library yourself or choose a package built for Laravel. Check the repository for any community adapters before assuming compatibility.
How do I configure circuit breaker thresholds in PhystrixBundle?
You configure named command keys and their thresholds in Symfony YAML, including error rate and timeout limits. Phystrix trips the circuit when those configured thresholds are exceeded, protecting your application from repeated failing calls. See the README for exact YAML structure and available options.
How do fallbacks work with Phystrix circuit breakers?
Fallbacks let you define an alternative response or behavior when a remote call fails or the circuit is open. PhystrixBundle supports configurable fallback strategies so your application can degrade gracefully instead of throwing errors. You wire fallbacks per named command in the bundle configuration.
What metrics does PhystrixBundle collect for monitoring?
Phystrix provides built-in metrics collection for circuit breaker activity, such as success, failure, timeout, and short-circuit events. These metrics can feed monitoring dashboards or alerting so you can see when a dependency is unhealthy. The bundle integrates this metrics capability into Symfony.
Can I use PhystrixBundle in production for microservices?
Yes, it is designed for microservice architectures where latency and fault tolerance matter. It wraps remote service calls in circuit breakers to isolate failures and keep applications responsive. As with any resilience tool, test your thresholds and fallback behavior under realistic load before production.
What are Laravel alternatives to PhystrixBundle for circuit breakers?
Because PhystrixBundle is Symfony-specific, Laravel teams often evaluate Laravel-oriented circuit breaker packages or use the Phystrix library directly. You can also implement a lightweight circuit breaker with Laravel's cache and HTTP client, though you lose Hystrix-style metrics and dashboards. Compare maintenance, metrics, and fallback support before choosing.
How do I test circuit breaker behavior in a Symfony app?
Test by simulating failures and timeouts for the wrapped remote calls, then assert that the circuit opens at the configured thresholds and that fallbacks execute. Use Symfony's test container to swap real services with stubs or mocks. Also verify metrics and recovery behavior when the circuit closes again.
Is pixelfederation/phystrix-bundle actively maintained?
Maintenance status is best checked on the GitHub repository and Packagist release history, since activity can change over time. Review open issues, recent commits, and supported Symfony versions before adopting it. If you need long-term support, confirm compatibility with your Symfony version and PHP runtime.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
robertmarney/lara-hierarchial-collections
simonschaufi/rule-doc-generator
emissaoja/emissaoja
blackbricksoftware/gravityforms-civicrm-form-processor
al-rahabi/fancy-crud
jinas/dhivatar-component
mltstephane/laravel-quality
bernskiold/laravel-talentlms
bernskioldmedia/laravel-form-architect
youbar/easy-crud
c-point-labs/laravel-hostyourai
dbravoan/dbcms-admin-theme-dbcms
dbravoan/dbcms-theme-db-cyber
dbravoan/dbcms-blocks-basic
dbravoan/dbcms-module-content-audit
dbravoan/dbcms-module-ai-assistant
paygate-to/paygate-php
padosoft/askmydocs-connector-base
defstudio/supercharged-carbon
bernskioldmedia/laravel-matomo