PHPackages                             ijodkor/quick-http - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. ijodkor/quick-http

ActiveLibrary[HTTP &amp; Networking](/categories/http)

ijodkor/quick-http
==================

PHP Http methods collection to use easy

v1.0.2(8mo ago)0290[1 issues](https://github.com/ijodkor/quick-http/issues)PHPPHP ^8.0

Since Feb 25Pushed 8mo agoCompare

[ Source](https://github.com/ijodkor/quick-http)[ Packagist](https://packagist.org/packages/ijodkor/quick-http)[ RSS](/packages/ijodkor-quick-http/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (3)Dependencies (2)Versions (5)Used By (0)

Collection of http request in Laravel/PHP
=========================================

[](#collection-of-http-request-in-laravelphp)

Example
=======

[](#example)

```
/**
 * Middleware to refresh token
 * @return Closure
 */
class EDMRequestService extends HttpBearerRequestService {

    public function __construct(readonly EDMAuthService $authService) {
        parent::__construct();

        $url = config('integration.edm_api_url');
        $this->setUrl("$url/document");
        $this->setCredentials($authService->getToken());
    }

    protected function middleware(): Closure {
        return function (callable $handler) {
            return function (RequestInterface $request, array $options) use ($handler) {
                $promise = $handler($request, $options);
                return $promise->then(function (ResponseInterface $response) use ($handler, $request, $options) {
                    /* @var Promise $promise */

                    if (in_array($response->getStatusCode(), [401, 403])) {
                        $token = $this->authService->login();
                        $request = $request->withHeader('Authorization', "Bearer $token");

                        // Retry request after refreshing token
                        // $promise->wait();
                        return $handler($request, $options);
                    }

                    return $response;
                });
            };
        };
    }
}
```

References
----------

[](#references)

- [Middleware](https://docs.guzzlephp.org/en/stable/handlers-and-middleware.html)

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance59

Moderate activity, may be stable

Popularity12

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 71.4% 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 ~112 days

Total

3

Last Release

259d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/176588925?v=4)[Ijodkor dasturchilar uyushmasi](/maintainers/ijodkor)[@ijodkor](https://github.com/ijodkor)

---

Top Contributors

[![atezkor](https://avatars.githubusercontent.com/u/58693223?v=4)](https://github.com/atezkor "atezkor (5 commits)")[![DilmurodQurbonboyev](https://avatars.githubusercontent.com/u/75987687?v=4)](https://github.com/DilmurodQurbonboyev "DilmurodQurbonboyev (2 commits)")

### Embed Badge

![Health badge](/badges/ijodkor-quick-http/health.svg)

```
[![Health](https://phpackages.com/badges/ijodkor-quick-http/health.svg)](https://phpackages.com/packages/ijodkor-quick-http)
```

###  Alternatives

[mateusjunges/laravel-kafka

A kafka driver for laravel

7243.4M20](/packages/mateusjunges-laravel-kafka)[illuminate/http

The Illuminate Http package.

11937.2M6.5k](/packages/illuminate-http)[api-platform/laravel

API Platform support for Laravel

59156.3k11](/packages/api-platform-laravel)[onlime/laravel-http-client-global-logger

A global logger for the Laravel HTTP Client

2037.5k](/packages/onlime-laravel-http-client-global-logger)

PHPackages © 2026

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