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

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

36

—

LowBetter than 81% of packages

Maintenance69

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

214d 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

[danharrin/livewire-rate-limiting

Apply rate limiters to Laravel Livewire actions.

40423.1M27](/packages/danharrin-livewire-rate-limiting)[mateusjunges/laravel-kafka

A kafka driver for laravel

7163.1M17](/packages/mateusjunges-laravel-kafka)[illuminate/http

The Illuminate Http package.

11936.0M5.0k](/packages/illuminate-http)[ricorocks-digital-agency/soap

A SOAP client that provides a clean interface for handling requests and responses.

4281.8M5](/packages/ricorocks-digital-agency-soap)[api-platform/laravel

API Platform support for Laravel

59126.4k5](/packages/api-platform-laravel)[laravel-shift/curl-converter

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

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

PHPackages © 2026

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