PHPackages                             yupmin/laravel-phystrix - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. yupmin/laravel-phystrix

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

yupmin/laravel-phystrix
=======================

An easy to use Phystrix integration for Laravel applications

v1.0.0(3y ago)61.6k1MITPHPPHP ^7.4|^8.0|^8.1|^8.2

Since May 31Pushed 3y ago2 watchersCompare

[ Source](https://github.com/yupmin/laravel-phystrix)[ Packagist](https://packagist.org/packages/yupmin/laravel-phystrix)[ Docs](https://github.com/yupmin/laravel-phystrix)[ RSS](/packages/yupmin-laravel-phystrix/feed)WikiDiscussions master Synced today

READMEChangelog (8)Dependencies (4)Versions (12)Used By (0)

Laravel Phystrix
================

[](#laravel-phystrix)

[![Latest Stable Version](https://camo.githubusercontent.com/74a6587b81fa6e6ce9c8a24af88a1ded47d8a89981c8a86c77ef31981db6ddca/68747470733a2f2f706f7365722e707567782e6f72672f7975706d696e2f6c61726176656c2d70687973747269782f762f737461626c65)](https://packagist.org/packages/yupmin/laravel-phystrix)[![Total Downloads](https://camo.githubusercontent.com/1423daeb0ca90a201976df3ba87c3e9706aeca7b1c90191bef77f486e2fde780/68747470733a2f2f706f7365722e707567782e6f72672f7975706d696e2f6c61726176656c2d70687973747269782f646f776e6c6f616473)](https://packagist.org/packages/yupmin/laravel-phystrix)[![License](https://camo.githubusercontent.com/693896ed128d16632dcbd409197ad199a555d0309c314a8b2f4f4c8fd51073a8/68747470733a2f2f706f7365722e707567782e6f72672f7975706d696e2f6c61726176656c2d70687973747269782f6c6963656e7365)](https://packagist.org/packages/yupmin/laravel-phystrix)[![Coding Standards](https://camo.githubusercontent.com/dbabe22710e675cb88cd0b12196f1477e2376dea497332775692cf1359a75918/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f63732d5053522d2d322d2d522d79656c6c6f772e737667)](https://github.com/php-fig-rectified/fig-rectified-standards)

Laravel Phystrix Package using by [Modern Phystrix](https://github.com/yupmin/phystrix)

Requirements
------------

[](#requirements)

- PHP 7.1 above
    - ext-json
    - ext-apcu
- Laravel 5.5 above

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

[](#installation)

```
composer require yupmin/laravel-phystrix
```

Install config

```
php artisan vendor/publish --provider=Yupmin\Phystrix\ServiceProvider
```

How to use
----------

[](#how-to-use)

Make Phystrix Command

```
php artisan make:phystrix-command TestCommand
```

Edit file 'app/Phystrix/TestCommand.php'

```
class TestCommand extends AbstractCommand
{
    protected $wantFallback;

    public function __construct($wantFallback = false)
    {
        $this->wantFallback = $wantFallback;
    }

    /**
     * @param bool $wantFallback
     * @return mixed
     * @throws Exception
     */
    protected function run()
    {
        if ($this->wantFallback) {
            throw new Exception("fallback");
        }

        return 'run test';
    }

    /**
     * @param Exception|null $exception
     * @return mixed
     */
    protected function getFallback(?Exception $exception = null)
    {
        return $exception->getMessage();
    }
}
```

Run TestCommand

```
phystrinx(App\Phystrix\TestCommand::class)->execute();
// => "run test"
phystrinx(App\Phystrix\TestCommand::class, false)->execute();
// => "fallback"
```

Run Phystrix Stream for dashboard (`apcu` is required.)

```
Route::get('/phystrix.stream', function () {
    phystrix_stream()->run();
});
```

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity78

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~132 days

Recently: every ~324 days

Total

11

Last Release

1218d ago

Major Versions

v0.4.0 → v1.0.02023-01-09

PHP version history (2 changes)v0.1.0PHP ^7.1.3

v1.0.0PHP ^7.4|^8.0|^8.1|^8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/880878?v=4)[yun young-jin](/maintainers/yupmin)[@yupmin](https://github.com/yupmin)

---

Top Contributors

[![yupmin](https://avatars.githubusercontent.com/u/880878?v=4)](https://github.com/yupmin "yupmin (13 commits)")

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/yupmin-laravel-phystrix/health.svg)

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

PHPackages © 2026

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