PHPackages                             darshphpdev/httpclient - 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. darshphpdev/httpclient

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

darshphpdev/httpclient
======================

Simple Http Client Package For Laravel Framework Built on Top of Guzzle.

v1.0.0(5y ago)69MITPHP

Since Oct 29Pushed 5y ago1 watchersCompare

[ Source](https://github.com/DarshPhpDev/httpclient)[ Packagist](https://packagist.org/packages/darshphpdev/httpclient)[ RSS](/packages/darshphpdev-httpclient/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

Laravel HttpClient Package
==========================

[](#laravel-httpclient-package)

[![Issues](https://camo.githubusercontent.com/3090226764aa5564f91406e376bb2f9072435aefc12584f898970949d251d3e1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f44617273685068704465762f48747470436c69656e742e7376673f7374796c653d666c61742d737175617265)](https://github.com/DarshPhpDev/HttpClient/issues)[![Stars](https://camo.githubusercontent.com/381455352e3b157972d7463e3e071f97283f25eb33569e3731e575bfde01e02a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f44617273685068704465762f48747470436c69656e742e7376673f7374796c653d666c61742d737175617265)](https://github.com/DarshPhpDev/HttpClient/stargazers)[![Downloads](https://camo.githubusercontent.com/669ece7fe8b918effc0fdc50aedf6a6696e467a2ad0c930c90572f4df6b27f62/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f44617273685068704465762f48747470436c69656e742e7376673f7374796c653d666c61742d737175617265)](https://github.com/DarshPhpDev/HttpClient)[![License](https://camo.githubusercontent.com/095e799623c3837f4f24d60cfc132f15833ab378b1e76f039d5562888aead6c9/68747470733a2f2f706f7365722e707567782e6f72672f44617273685068704465762f48747470436c69656e742f6c6963656e73652e737667)](https://github.com/DarshPhpDev/HttpClient)

Simple Http Client Package For Laravel Framework Built on Top of Guzzle.
------------------------------------------------------------------------

[](#simple-http-client-package-for-laravel-framework-built-on-top-of-guzzle)

INSTALLATION
------------

[](#installation)

Install the package through [Composer](http://getcomposer.org/).

`composer require darshphpdev/httpclient`

CONFIGURATION
-------------

[](#configuration)

1. Optional: The service provider will automatically get registered. Or you may manually add the service provider to providers array in your config/app.php file:

```
'providers' => [
    // ...
    DarshPhpDev\\HttpHelper\\HttpClientServiceProvider::class,
];
```

2. Optional configuration file (useful if you plan to have full control)

```
php artisan vendor:publish --tag="httpclient"
```

HOW TO USE
----------

[](#how-to-use)

- [Quick Usage](#quick)
- [Usage](#usage)
- [Credits](#credits)
- [License](#license)

Quick Usage
-----------

[](#quick-usage)

```
// In your controller
// Use The Helper class HttpClient to send http requests
use HttpClient;

// Get Request
HttpClient::get('https://jsonplaceholder.typicode.com/posts');

// Get Request with params
HttpClient::get('https://jsonplaceholder.typicode.com/posts', ['limit' => 3]);
// Hits https://jsonplaceholder.typicode.com/posts?limit=3

// Get Request with headers
HttpClient::get('https://jsonplaceholder.typicode.com/posts', [], ['Content-Type' => 'application/json']);

// Post Request
HttpClient::post('https://jsonplaceholder.typicode.com/posts');

// Post Request with body
HttpClient::post('https://jsonplaceholder.typicode.com/posts', ['title' => 'HttpClient Package']);

// Post Request with body & headers
HttpClient::post('https://jsonplaceholder.typicode.com/posts',[
	'title' => 'HttpClient Package'
	] , [
		'Content-Type' => 'application/json'
	]);

// FOR FULL USAGE, SEE BELOW..
```

Usage
-----

[](#usage)

### IMPORTANT NOTE!

[](#important-note)

By default, in post request the body type used is json, if you want to change it specify the body type on the 4th argument\\s

Available Body Types:-

- "json": Sends body params as json object (Default).
- "form\_params": Sends body params as form parameters.
- "multipart": Used if you want to send files in body.

Example:

```
HttpClient::post('https://jsonplaceholder.typicode.com/posts',
	['title' => 'HttpClient Package'],
	['Content-Type' => 'application/x-www-form-urlencoded'],
	'form_params'
);
HttpClient::post('https://jsonplaceholder.typicode.com/posts',
	['name' => 'myFile', 'content' => 'path/to/file'],
	['Content-Type' => 'multipart/form-data'],
	'multipart'
);
// and so on..
```

Credits
-------

[](#credits)

- [MUSTAFA AHMED](https://github.com/DarshPhpDev)

License
-------

[](#license)

The Http Client Package is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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

2027d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5dc427456706f88e785b5ded5d2e9673e9bc7fa8a742b5949a62db0272de5181?d=identicon)[DarshPhpDev](/maintainers/DarshPhpDev)

---

Top Contributors

[![DarshPhpDev](https://avatars.githubusercontent.com/u/29954627?v=4)](https://github.com/DarshPhpDev "DarshPhpDev (2 commits)")

### Embed Badge

![Health badge](/badges/darshphpdev-httpclient/health.svg)

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

###  Alternatives

[spatie/crawler

Crawl all internal links found on a website

2.8k16.3M52](/packages/spatie-crawler)[omniphx/forrest

A Laravel library for Salesforce

2724.4M8](/packages/omniphx-forrest)[akamai-open/edgegrid-client

Implements the Akamai {OPEN} EdgeGrid Authentication specified by https://developer.akamai.com/introduction/Client\_Auth.html

482.5M6](/packages/akamai-open-edgegrid-client)[muhammadhuzaifa/telescope-guzzle-watcher

Telescope Guzzle Watcher provide a custom watcher for intercepting http requests made via guzzlehttp/guzzle php library. The package uses the on\_stats request option for extracting the request/response data. The watcher intercept and log the request into the Laravel Telescope HTTP Client Watcher.

98239.8k1](/packages/muhammadhuzaifa-telescope-guzzle-watcher)[onesignal/onesignal-php-api

A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com

34170.2k2](/packages/onesignal-onesignal-php-api)[ory/hydra-client-php

Documentation for all of Ory Hydra's APIs.

1710.8k](/packages/ory-hydra-client-php)

PHPackages © 2026

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