PHPackages                             not-empty/request-service-php-lib - 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. not-empty/request-service-php-lib

ActiveLibrary

not-empty/request-service-php-lib
=================================

PHP library using Guzzle base to send request to any services. Good to use in microservice architecture

8.0.0(4mo ago)43.4k↓50%1GPL-3.0-onlyPHPPHP ^8.4CI passing

Since Nov 2Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/not-empty/request-service-php-lib)[ Packagist](https://packagist.org/packages/not-empty/request-service-php-lib)[ RSS](/packages/not-empty-request-service-php-lib/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (8)Dependencies (5)Versions (9)Used By (1)

PHP Request Service
===================

[](#php-request-service)

[![Latest Version](https://camo.githubusercontent.com/e79257a3846c1b1fb388c620670643e42d5cc8b4a7229b03fef78b9f2ad2beb5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f6e6f742d656d7074792f726571756573742d736572766963652d7068702d6c69622e7376673f7374796c653d666c61742d737175617265)](https://github.com/not-empty/request-service-php-lib/releases)[![codecov](https://camo.githubusercontent.com/7bfcec41601ad16e8298b14d022697ebbce6efd9aa606e04b1a5d1f82aa89e9d/68747470733a2f2f636f6465636f762e696f2f67682f6e6f742d656d7074792f726571756573742d736572766963652d7068702d6c69622f67726170682f62616467652e7376673f746f6b656e3d41454d56313633555736)](https://codecov.io/gh/not-empty/request-service-php-lib)[![CI Build](https://camo.githubusercontent.com/1bdc157a0e3e9c32b6dfbb96809453ad1079dd71ca1c1daa35febf70550f6ba0/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6e6f742d656d7074792f726571756573742d736572766963652d7068702d6c69622f7068702e796d6c)](https://github.com/not-empty/request-service-php-lib/actions/workflows/php.yml)[![Downloads Old](https://camo.githubusercontent.com/e2b4a802d5b13bed0e31b991ff20e57b1e14dce6c37b046cfe8617229237366b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6b697766792f726571756573742d736572766963652d7068703f6c6f676f3d6f6c64266c6162656c3d646f776e6c6f6164732532306c6567616379)](https://packagist.org/packages/kiwfy/request-service-php)[![Downloads](https://camo.githubusercontent.com/8c2d605d208d8ae299d07a71f0ada92e61a006db02e346810656b46d3eacb6dd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6e6f742d656d7074792f726571756573742d736572766963652d7068702d6c69623f6c6f676f3d6f6c64266c6162656c3d646f776e6c6f616473)](https://packagist.org/packages/not-empty/request-service-php-lib)[![PRs Welcome](https://camo.githubusercontent.com/25b3e6d0d42c98de74a98cbb4d149a1c09020cf6d1361993b72d7d5b8ffed363/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5052732d77656c636f6d652d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](http://makeapullrequest.com)[![Packagist License (custom server)](https://camo.githubusercontent.com/ca9604df7948a6c20caa46496fb1cd23e1d4a9308e8138bcb67255c1f1887707/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6e6f742d656d7074792f726571756573742d736572766963652d7068702d6c69623f7632)](https://github.com/not-empty/request-service-php-lib/blob/master/LICENSE)

PHP library using Guzzle base to send request to any services. Good to use in microservice architecture

### Installation

[](#installation)

[Release 8.0.0](https://github.com/not-empty/request-service-php-lib/releases/tag/8.0.0) Requires [PHP](https://php.net) 8.4

[Release 7.0.0](https://github.com/not-empty/request-service-php-lib/releases/tag/7.0.0) Requires [PHP](https://php.net) 8.3

[Release 6.0.0](https://github.com/not-empty/request-service-php-lib/releases/tag/6.0.0) Requires [PHP](https://php.net) 8.2

[Release 5.0.0](https://github.com/not-empty/request-service-php-lib/releases/tag/5.0.0) Requires [PHP](https://php.net) 8.1

[Release 4.0.0](https://github.com/not-empty/request-service-php-lib/releases/tag/4.0.0) Requires [PHP](https://php.net) 7.4

[Release 3.0.0](https://github.com/not-empty/request-service-php-lib/releases/tag/3.0.0) Requires [PHP](https://php.net) 7.3

[Release 2.0.0](https://github.com/not-empty/request-service-php-lib/releases/tag/2.0.0) Requires [PHP](https://php.net) 7.2

[Release 1.0.0](https://github.com/not-empty/request-service-php-lib/releases/tag/1.0.0) Requires [PHP](https://php.net) 7.1

The recommended way to install is through [Composer](https://getcomposer.org/).

```
composer require not-empty/request-service-php-lib
```

### Usage

[](#usage)

Requesting json

```
use RequestService\Request;
$config = [
	'your-service' => [
		'url' => 'https://jsonplaceholder.typicode.com',
	],
];
$sample = new Request($config);
$response = $sample->sendRequest(
	'your-service',
	'GET',
	'todos/1'
);
var_dump($response);
```

Requesting stream

```
use RequestService\Request;
$config = [
	'your-service' => [
		'url' => 'https://developer.marvel.com/',
		'json' => false,
	],
];
$sample = new Request($config);
$header = [
	'stream' => true,
];
$response = $sample->sendRequest(
	'your-service',
	'GET',
	'docs',
	$header
);
var_dump($response);
```

if you want an environment to run or test it, you can build and install dependences like this

```
docker build --build-arg PHP_VERSION=8.4-cli -t not-empty/request-service-php-lib:php84 -f contrib/Dockerfile .
```

Access the container

```
docker run --name request-service-php-lib -v ${PWD}/:/var/www/html -it not-empty/request-service-php-lib:php84 bash
```

Verify if all dependencies is installed

```
composer install --no-dev --prefer-dist
```

and run

```
php sample/request-sample.php
php sample/request-image-sample.php
```

### Development

[](#development)

Want to contribute? Great!

The project using a simple code. Make a change in your file and be careful with your updates! **Any new code will only be accepted with all validations.**

To ensure that the entire project is fine:

First you need to building a correct environment to install all dependences

```
docker build --build-arg PHP_VERSION=8.4-cli -t not-empty/request-service-php-lib:php84 -f contrib/Dockerfile .
```

Access the container

```
docker run --name request-service-php-lib -v ${PWD}/:/var/www/html -it not-empty/request-service-php-lib:php84 bash
```

Install all dependences

```
composer install --dev --prefer-dist
```

Run all validations

```
composer check
```

**Not Empty Foundation - Free codes, full minds**

###  Health Score

48

—

FairBetter than 95% of packages

Maintenance77

Regular maintenance activity

Popularity26

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 92.9% 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 ~115 days

Recently: every ~201 days

Total

8

Last Release

125d ago

Major Versions

3.0.0 → 4.0.02023-11-02

4.0.0 → 5.0.02023-11-02

5.0.0 → 6.0.02023-11-02

6.0.0 → 7.0.02023-11-27

7.0.0 → 8.0.02026-01-13

PHP version history (8 changes)1.0.0PHP ^7.1

2.0.0PHP ^7.2

3.0.0PHP ^7.3

4.0.0PHP ^7.4

5.0.0PHP ^8.1

6.0.0PHP ^8.2

7.0.0PHP ^8.3

8.0.0PHP ^8.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/febe33cd8961e65ed6afafa8b426ad68f95521285e9145313764001d67028914?d=identicon)[not-empty](/maintainers/not-empty)

---

Top Contributors

[![leodisarli](https://avatars.githubusercontent.com/u/1638455?v=4)](https://github.com/leodisarli "leodisarli (13 commits)")[![brunavitoria](https://avatars.githubusercontent.com/u/43785466?v=4)](https://github.com/brunavitoria "brunavitoria (1 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/not-empty-request-service-php-lib/health.svg)

```
[![Health](https://phpackages.com/badges/not-empty-request-service-php-lib/health.svg)](https://phpackages.com/packages/not-empty-request-service-php-lib)
```

###  Alternatives

[neuron-core/neuron-ai

The PHP Agentic Framework.

1.8k245.3k21](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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