PHPackages                             odesk/phystrix-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. odesk/phystrix-bundle

AbandonedArchivedSymfony-bundle[Framework](/categories/framework)

odesk/phystrix-bundle
=====================

Phystrix integration with Symfony2 framework.

v1.1.8(9y ago)029.7k—0%Apache-2.0PHPPHP &gt;=5.3.3

Since Mar 31Pushed 6y ago23 watchersCompare

[ Source](https://github.com/upwork/phystrix-bundle)[ Packagist](https://packagist.org/packages/odesk/phystrix-bundle)[ RSS](/packages/odesk-phystrix-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (5)Versions (5)Used By (0)

[![SensioLabsInsight](https://camo.githubusercontent.com/8e430a348e4e7731bc01d28a381a260ddc51799fa2d560e6744e056d62771a0e/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f63303039646164662d613231392d343830382d623838382d6539616261643961373362662f6d696e692e706e67)](https://insight.sensiolabs.com/projects/c009dadf-a219-4808-b888-e9abad9a73bf)[![Build Status](https://camo.githubusercontent.com/1d8302b284540bea87c5db8745d55687ec8756e1d5761847dd00a07a0d23b9f1/68747470733a2f2f7472617669732d63692e6f72672f7570776f726b2f70687973747269782d62756e646c652e737667)](https://travis-ci.org/upwork/phystrix-bundle)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/e35d8094e0ed0b26c7fdcccf615c05aa9aebc536a53ede4afa8192de83c9da4d/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6f6465736b2f70687973747269782d62756e646c652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/odesk/phystrix-bundle/?branch=master)

Phystrix Bundle
===============

[](#phystrix-bundle)

This bundle provides phystrix command factory service: `phystrix.command_factory` with default configuration

Installation
------------

[](#installation)

Install component by using [Composer](https://getcomposer.org). Update your project's `composer.json` file to include dependency.

```
"require": {
    "odesk/phystrix-bundle": "~1.1"
}
```

Register bundle in your `AppKernel`

```
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...
            new Odesk\Bundle\PhystrixBundle\OdeskPhystrixBundle()
            // ...
        );
    }
}
```

Configuration
-------------

[](#configuration)

Default configuration:

### app/config/config.yml

[](#appconfigconfigyml)

```
odesk_phystrix:
  default:
    fallback: ~
    circuitBreaker:
      errorThresholdPercentage: 50
      forceOpen: false
      forceClosed: false
      requestVolumeThreshold: 20
      sleepWindowInMilliseconds: 5000
    metrics:
      healthSnapshotIntervalInMilliseconds: 1000
      rollingStatisticalWindowInMilliseconds: 10000
      rollingStatisticalWindowBuckets: 10
    requestCache: ~
    requestLog: ~
```

Web Profiler
------------

[](#web-profiler)

Phystrix bundles comes with a web profiler plugin, it is enabled automatically whenever Symfony profiler is enabled. You only need to make sure requestLog feature is turned on:

```
odesk_phystrix:
  default:
    requestLog:
      enabled: true
```

Only do this in mode/environment where profiler is active.

Usage
-----

[](#usage)

You may use `phystrix.service_locator` to provide additional dependencies in runtime:

```
$container->get('phystrix.service_locator')->set('somekey', $somevalue);
```

How to create and run a command:

```
$command = $container->get('phystrix.command_factory')->getCommand('MyCommand', $parameter1, $parameter2);
$command->execute();
```

### License

[](#license)

This file is a part of the Phystrix Bundle

Copyright 2013-2017 Upwork Global Inc. All Rights Reserved.

This file is licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 50% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~155 days

Total

4

Last Release

3598d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b08a0346e3b4f5b0f17765b7cf12df188fdeb25b67677ae63fd5f3a71960f34e?d=identicon)[lcf](/maintainers/lcf)

---

Top Contributors

[![mxnr](https://avatars.githubusercontent.com/u/1383089?v=4)](https://github.com/mxnr "mxnr (3 commits)")[![lcf](https://avatars.githubusercontent.com/u/185882?v=4)](https://github.com/lcf "lcf (2 commits)")[![bpaulin](https://avatars.githubusercontent.com/u/115711?v=4)](https://github.com/bpaulin "bpaulin (1 commits)")

---

Tags

symfonyodeskphystrix

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/odesk-phystrix-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/odesk-phystrix-bundle/health.svg)](https://phpackages.com/packages/odesk-phystrix-bundle)
```

###  Alternatives

[symfony/framework-bundle

Provides a tight integration between Symfony components and the Symfony full-stack framework

3.6k235.4M9.7k](/packages/symfony-framework-bundle)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)[shopware/storefront

Storefront for Shopware

684.2M148](/packages/shopware-storefront)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
