PHPackages                             soltancode/send-request - 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. soltancode/send-request

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

soltancode/send-request
=======================

Simple package for Laravel that makes it easy to send HTTP requests and integrate with web APIs.

v2.0.0(3y ago)22.6kMITPHPPHP ^8.0

Since Sep 30Pushed 3y ago1 watchersCompare

[ Source](https://github.com/soltancode/SendRequest)[ Packagist](https://packagist.org/packages/soltancode/send-request)[ Fund](https://ko-fi.com/soltancode)[ RSS](/packages/soltancode-send-request/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (4)Used By (0)

SendRequest
===========

[](#sendrequest)

Simple package for Laravel Framework that makes it easy to send HTTP requests and integrate with web APIs.

[![Packagist Version](https://camo.githubusercontent.com/332a82ac37b68af80fa1ed7bfc9500de29ad2b9a019b0c5225d25d3eaff47d47/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f736f6c74616e636f64652f73656e642d726571756573743f6c6162656c3d737461626c65)](https://packagist.org/packages/soltancode/send-request)[![Packagist Stars](https://camo.githubusercontent.com/7c61eac40c1775ad36bff4abf1ab7a95799a297e58460eac0350a74aa4b63bee/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f73746172732f736f6c74616e636f64652f73656e642d72657175657374)](https://packagist.org/packages/soltancode/send-request)[![Packagist Downloads](https://camo.githubusercontent.com/c80129ed995360ccbf647c9ec78c86906f57ff3506ae7772acc3153fb9dddf12/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f736f6c74616e636f64652f73656e642d72657175657374)](https://packagist.org/packages/soltancode/send-request)[![Packagist PHP Version Support](https://camo.githubusercontent.com/cfb17333adceaed2e575996e4b054819fead51f1cbb7d7aa5a3d7f4ca25147b6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f736f6c74616e636f64652f73656e642d72657175657374)](https://packagist.org/packages/soltancode/send-request)[![Packagist License](https://camo.githubusercontent.com/e4e08cbf36c032b04dbcaf96343d3fc5f53439fcba03b6d6a6bc44728fa4f70d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f736f6c74616e636f64652f73656e642d72657175657374)](https://github.com/soltancode/SendRequest/blob/main/LICENSE)

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

[](#installation)

```
composer require soltancode/send-request

```

Usage
-----

[](#usage)

#### If you use it as class (facade), import this:

[](#if-you-use-it-as-class-facade-import-this)

```
use Soltancode\SendRequest\Facades\SendRequest;
```

#### GET Request:

[](#get-request)

```
// $baseUrl = "https://dummyjson.com";
// $service = "/products/1";

# Using as class:
SendRequest::get($baseUrl, $service);

# Using as helper:
sendRequest()->get($baseUrl, $service)
```

#### GET Request with params:

[](#get-request-with-params)

```
// $baseUrl = "https://dummyjson.com";
// $service = "/products/1";
// $params  = [
//     'q' => 'phone'
// ];

# Using as class:
SendRequest::get($baseUrl, $service, $params); # https://dummyjson.com/products/search?q=phone

# Using as helper:
sendRequest()->get($baseUrl, $service, $params); # https://dummyjson.com/products/search?q=phone
```

#### POST Request with params:

[](#post-request-with-params)

```
// $baseUrl = "https://api.example.com";
// $service = "/login";

# Using as class:
SendRequest::post($baseUrl, $service, [
    'username' => 'myusername',
    'password' => 'mypassword'
]);

# Using as helper:
sendRequest()->post($baseUrl, $service, [
    'username' => 'myusername',
    'password' => 'mypassword'
]);
```

#### PUT Request with params:

[](#put-request-with-params)

```
// $baseUrl = "https://api.example.com";
// $service = "/users/1";

# Using as class:
SendRequest::put($baseUrl, $service, [
    'first_name' => 'John',
    'last_name' => 'Doe'
]);

# Using as helper:
sendRequest()->put($baseUrl, $service, [
    'first_name' => 'John',
    'last_name' => 'Doe'
]);
```

#### PATCH Request with params:

[](#patch-request-with-params)

```
// $baseUrl = "https://api.example.com";
// $service = "/users/1";

# Using as class:
SendRequest::patch($baseUrl, $service, [
    'first_name' => 'John'
]);

# Using as helper:
sendRequest()->patch($baseUrl, $service, [
    'first_name' => 'John'
]);
```

#### DELETE Request with params:

[](#delete-request-with-params)

```
// $baseUrl = "https://api.example.com";
// $service = "/users";

# Using as class:
SendRequest::delete($baseUrl, $service, [
    'id' => 'John'
]);

# Using as helper:
sendRequest()->delete($baseUrl, $service, [
    'id' => 'John'
]);
```

### Timeout

[](#timeout)

The timeout method may be used to specify the maximum number of seconds to wait for a response:

```
$response = sendRequest()->timeout(3)->post(/* ... */);
```

Other Packages
--------------

[](#other-packages)

[ReturnResponse](https://github.com/soltancode/ReturnResponse) - It's a return helper for showing standard json responses.

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

[](#contributing)

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

Please make sure to update tests as appropriate.

License
-------

[](#license)

[MIT](https://github.com/soltancode/SendRequest/blob/main/LICENSE)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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

Every ~54 days

Total

2

Last Release

1271d ago

Major Versions

v1.0.0 → v2.0.02022-11-24

PHP version history (2 changes)v1.0.0PHP ^7.3|^8.0

v2.0.0PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/affc847d47e9bdd1d9afe6fb22b6bc70cb6d75e5302d9f35961fd6412f5de7fe?d=identicon)[soltancode](/maintainers/soltancode)

---

Top Contributors

[![soltancode](https://avatars.githubusercontent.com/u/25416157?v=4)](https://github.com/soltancode "soltancode (35 commits)")

---

Tags

apicurlguzzlehttp-clienthttpclientlaravelphprequestsrestphpjsonapilaravelrestcurlhttp clientGuzzlerequestshttpclientsoltancode

### Embed Badge

![Health badge](/badges/soltancode-send-request/health.svg)

```
[![Health](https://phpackages.com/badges/soltancode-send-request/health.svg)](https://phpackages.com/packages/soltancode-send-request)
```

###  Alternatives

[ismaeltoe/osms

PHP library wrapper of the Orange SMS API.

4540.0k](/packages/ismaeltoe-osms)[api-platform/laravel

API Platform support for Laravel

59126.4k6](/packages/api-platform-laravel)[e-moe/guzzle6-bundle

Integrates Guzzle 6 into your Symfony application

11259.2k](/packages/e-moe-guzzle6-bundle)

PHPackages © 2026

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