PHPackages                             patienceman/httprequestor - 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. patienceman/httprequestor

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

patienceman/httprequestor
=========================

HTTP Requestor: Package for a client request that supports you to make an external service request easily and with fast usage

v1.0.0(3y ago)318MITPHP

Since Aug 23Pushed 3y ago1 watchersCompare

[ Source](https://github.com/manirabona-programer/http-requestor)[ Packagist](https://packagist.org/packages/patienceman/httprequestor)[ RSS](/packages/patienceman-httprequestor/feed)WikiDiscussions main Synced 4w ago

READMEChangelog (1)DependenciesVersions (3)Used By (0)

HttpRequestor from Patienceman
==============================

[](#httprequestor-from-patienceman)

HTTP Requestor: Package for a client request that supports you to make an external service request easily and with fast usage.

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

[](#installation)

Installing the package doesn't require much requirement except to paste the following command in the laravel terminal, and you're good to go.

```
  composer require patienceman/httprequestor
```

Usage
-----

[](#usage)

To use HTTP Requestor u need to call `HttpRequest ` class, But before everything you need to publish the config file for "HTTP requestor", Just run!

```
php artisan vendor:publish --tag=HttpConfigs
```

Let's take the example with it and see the simplicity

```
  $http = HttpRequest::server('https://commandement.com');
```

So!, now you can make requests with all standard methods. There are two ways this package is useful, by requesting an access token to the server or by sending a normal request

let's take the example of requesting access token

```
  $http = HttpRequest::server('https://commandement.com');

  $http->buildHttpQuery([
      'grant_type' => 'client_credentials',
      'client_id' => config('services.custom.client_id'),
      'client_secret' => config('services.custom.client_secret'),
      'scope' => config('services.custom.scope)
  ]);

  return $http->requestToken('/oauth/token');
```

So now we are able to request an access tokens.

Let also take the example of a normally api request with standard HTTP methods

```
  $http = HttpRequest::server('https://commandement.com');

  $http->withHeaders([
      'Authorization' => $accessToken,
      'Accept' => 'application/json',
  ]);

  $http->withData([
    'name' => 'moses',
    'location' => 'mountain-sinai',
    'command' => 'navigate islaels'
  ]);

  $http->request('POST', '/api/sync-movement')

  return $http->then(function($response, $error) {
      return $response->last_update_at;
  });
```

Fantastic right! and super cool!

So now on Moses are able to make a super request to our commandment server!,

This package also contains the HttpResponse Helper class, which support your JSON response to remove all null value, on the go! To use it, u need just one class `bash HttpResponse `

let's take an example with it and see how it works!

```
  function httpJsonResponse(?string $message, $data = null, array $with, int $code = 200): JsonResponse {
      $response = HttpResponse::create(array_merge([
          'success' => ($code > 199 && $code < 300) ? true : false,
          'data' => $data,
          'message' => $message
      ], $with));

      return response()->json($response->extract(), $code);
  }
```

And whenever one of the passed parameters is null, the HttpResponse deletes it from the parameters, soon or later we're going to another way of making it optional.

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

[](#contributing)

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License
-------

[](#license)

[MIT](https://choosealicense.com/licenses/mit/)

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

1354d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/90353f39cc87c27ae67eb7503409539cb8fe8f879fa749cb3e51458cad85c00c?d=identicon)[Manirabona-patience](/maintainers/Manirabona-patience)

---

Top Contributors

[![patiencemanzen](https://avatars.githubusercontent.com/u/55847682?v=4)](https://github.com/patiencemanzen "patiencemanzen (25 commits)")

---

Tags

http-clientlaravelphphttprequestphpclienthelper

### Embed Badge

![Health badge](/badges/patienceman-httprequestor/health.svg)

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

###  Alternatives

[chillerlan/php-httpinterface

A PSR-7/17/18 http message/client implementation

1417.1k5](/packages/chillerlan-php-httpinterface)

PHPackages © 2026

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