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(5mo ago)0282↓100%[1 issues](https://github.com/ijodkor/quick-http/issues)PHPPHP ^8.0

Since Feb 25Pushed 5mo 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 today

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

36

—

LowBetter than 82% of packages

Maintenance70

Regular maintenance activity

Popularity12

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity45

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

168d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6842c2de7e4b7f3b6bfc3ea88684d009d8381f9325bf81c9e9095cf3b0ef84f8?d=identicon)[ijodkor](/maintainers/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

[anchu/ftp

A simple Laravel 7 ftp service provider

225579.4k](/packages/anchu-ftp)[tomschlick/laravel-http2-server-push

A middleware package for Laravel to enable server push for your script, style, and image assets.

16467.1k](/packages/tomschlick-laravel-http2-server-push)[api-platform/laravel

API Platform support for Laravel

59113.6k3](/packages/api-platform-laravel)[laravel-shift/curl-converter

A command line tool to convert curl requests to Laravel HTTP requests.

935.2k](/packages/laravel-shift-curl-converter)

PHPackages © 2026

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