PHPackages                             per3evere/preq - 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. per3evere/preq

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

per3evere/preq
==============

Microservices IPC command factory for Laravel &amp;&amp; Lumen

v2.0.0(5y ago)73.0k1MITPHPPHP ^7.1CI failing

Since Jun 13Pushed 5y ago1 watchersCompare

[ Source](https://github.com/dojiland/preq-laravel)[ Packagist](https://packagist.org/packages/per3evere/preq)[ RSS](/packages/per3evere-preq/feed)WikiDiscussions master Synced yesterday

READMEChangelog (10)Dependencies (3)Versions (13)Used By (0)

[![Build Status](https://camo.githubusercontent.com/f048cb569ae4630bf784b2af656527e6a32ebacdf6cd65a77b62752fa3019a89/68747470733a2f2f7472617669732d63692e6f72672f706572736576657265566f6e2f707265712d6c61726176656c2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/persevereVon/preq-laravel)

About Preq
----------

[](#about-preq)

Preq is a latency and fault tolerance library for Laravel &amp;&amp; Lumen, inspired by Netflix’s Hystrix and [upwork/phystrix](https://github.com/upwork/phystrix)

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

[](#installation)

Require this package with composer:

```
composer require per3evere/preq --dev

```

Add ServiceProvider

### Laravel

[](#laravel)

add this to the providers array in `config/app.php`

```
Per3evere\Preq\PreqServiceProvider::class
```

### Lumen

[](#lumen)

add this in `bootstrap/app.php`

```
$app->register(Per3evere\Preq\PreqServiceProvider::class);
```

Usage
-----

[](#usage)

Create service command file

```
namespace App\Services;

use Per3evere\Preq\AbstractCommand;

class Example extends AbstractCommand
{
    /**
     * 同步执行命令.
     *
     * @return void
     */
    public function run()
    {
        return 'run!';
    }

    /**
     * 异步执行命令.
     *
     * @return \Guzzlehttp\Promise\Promise;
     */
    public function runAsync()
    {
        // 返回注意返回类型.
    }
}
```

execute it

```
$command = app('preq')->getCommand(\App\Services\Example::class);

// 同步执行命令
echo $command->execute();

// 异步执行命令
$command->queue();
```

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 90.9% 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 ~119 days

Recently: every ~224 days

Total

12

Last Release

1937d ago

Major Versions

0.2.0 → 1.0.02017-11-29

v1.0.6 → v2.0.02021-01-22

PHP version history (3 changes)0.1.0PHP &gt;=5.6.4

v2.0.0PHP ^7.1

v1.x-devPHP ^7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/13998ec17c665925c12b2a9ad5e13cf87e083cd997859d6377ff95e69311e0eb?d=identicon)[per3evere](/maintainers/per3evere)

---

Top Contributors

[![dzvon](https://avatars.githubusercontent.com/u/3402811?v=4)](https://github.com/dzvon "dzvon (30 commits)")[![voilaf](https://avatars.githubusercontent.com/u/16870828?v=4)](https://github.com/voilaf "voilaf (2 commits)")[![llnut](https://avatars.githubusercontent.com/u/57132401?v=4)](https://github.com/llnut "llnut (1 commits)")

---

Tags

laravelmicroservicesipc

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/per3evere-preq/health.svg)

```
[![Health](https://phpackages.com/badges/per3evere-preq/health.svg)](https://phpackages.com/packages/per3evere-preq)
```

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[laracrafts/laravel-url-shortener

Powerful URL shortening tools in Laravel

97110.7k](/packages/laracrafts-laravel-url-shortener)[interaction-design-foundation/laravel-geoip

Support for multiple Geographical Location services.

17221.0k3](/packages/interaction-design-foundation-laravel-geoip)[gabrielanhaia/laravel-circuit-breaker

Laravel integration for PHP Circuit Breaker — multiple storage drivers, middleware, Artisan commands, and event system

481.0k](/packages/gabrielanhaia-laravel-circuit-breaker)[nedwors/navigator

A Laravel package to ease defining navigation menus

433.1k](/packages/nedwors-navigator)[dcblogdev/laravel-junie

Install pre-configured guides for Jetbrains Junie

392.5k](/packages/dcblogdev-laravel-junie)

PHPackages © 2026

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