PHPackages                             reneiw/hiei - 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. reneiw/hiei

ActiveLibrary

reneiw/hiei
===========

Http request Is Especially Import!.

1.1.0(4y ago)18061MITPHPPHP ^7.4|^8.0

Since Nov 23Pushed 4y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (2)Versions (13)Used By (1)

Hiei
====

[](#hiei)

- Http request Is Especially Import!.

Prompt
------

[](#prompt)

If you just need a returnable middleware.
then you can try [caseyamcl/guzzle\_retry\_middleware](https://github.com/caseyamcl/guzzle_retry_middleware).
I think you will like him.

Installing
----------

[](#installing)

Via Composer

```
$ composer require reneiw/hiei -vvv
```

Quickstart
----------

[](#quickstart)

```
use GuzzleHttp\Client;
use GuzzleHttp\Exception\GuzzleException;
use GuzzleHttp\HandlerStack;
use Reneiw\Hiei\HieiMiddleware;
use Reneiw\Hiei\HTTPService;

$stack = HandlerStack::create();
$stack->push(
    HieiMiddleware::factory(
        [
            //Set a maximum number of attempts per request, default 10
            'max_retry_attempts' => 2,
            // Only retry when status is equal to these response codes, default [429, 503]
            'retry_on_status' => [204, 429, 503],
        ]
    )
);
$client = new Client(['handler' => $stack]);
$http = new HTTPService(
    $client,
    [
        'errorCallback' => [
            function ($method, $uri, $params, GuzzleException $e) {
               logger()->info('123', [$method, $uri, $params, $e->getMessage()]);
            },
            function ($method, $uri, $params, GuzzleException $e) {
               logger()->info('223', [$method, $uri, $params, $e->getMessage()]);
            },
        ],
   ]
);
return $http->request('GET', 'http://www.google.com/generate_204');
```

Usage
-----

[](#usage)

TODO

Contributing
------------

[](#contributing)

You can contribute in one of three ways:

1. File bug reports using the [issue tracker](https://github.com/reneiw/hiei/issues).
2. Answer questions or fix bugs on the [issue tracker](https://github.com/reneiw/hiei/issues).
3. Contribute new features or update the wiki.

*The code contribution process is not very formal. You just need to make sure that you follow the PSR-0, PSR-1, and PSR-2 coding guidelines. Any new code contributions must be accompanied by unit tests where applicable.*

License
-------

[](#license)

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

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity66

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 ~23 days

Recently: every ~46 days

Total

10

Last Release

1784d ago

PHP version history (2 changes)1.0.0PHP ^7.4

1.1.0PHP ^7.4|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/634675c7ec2563c405704f92a073fed44d34865027ec47da8e850f2b1dd4db74?d=identicon)[wiener](/maintainers/wiener)

---

Top Contributors

[![arukas](https://avatars.githubusercontent.com/u/20608691?v=4)](https://github.com/arukas "arukas (48 commits)")

### Embed Badge

![Health badge](/badges/reneiw-hiei/health.svg)

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

###  Alternatives

[neuron-core/neuron-ai

The PHP Agentic Framework.

1.8k245.3k21](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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