PHPackages                             kwhat/requestful - 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. kwhat/requestful

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

kwhat/requestful
================

A simple PSR compatible HTTP client library

v0.2.1(3y ago)3141MITPHPPHP &gt;=7.2.0

Since Dec 21Pushed 3y ago1 watchersCompare

[ Source](https://github.com/kwhat/requestful)[ Packagist](https://packagist.org/packages/kwhat/requestful)[ Docs](https://github.com/kwhat/requestful)[ RSS](/packages/kwhat-requestful/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (3)Dependencies (5)Versions (4)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/73744e0ecc2ca0e882ece80a11f02db1d2209641cc68cbb3cfb0992d9d4326b0/68747470733a2f2f706f7365722e707567782e6f72672f6b776861742f7265717565737466756c2f76657273696f6e)](https://packagist.org/packages/kwhat/requestful)[![Latest Unstable Version](https://camo.githubusercontent.com/107ad7f68074a88b95b3b1ff608a73c17ec661ecf8b45469a1812655d96c1016/68747470733a2f2f706f7365722e707567782e6f72672f6b776861742f7265717565737466756c2f762f756e737461626c65)](//packagist.org/packages/kwhat/requestful)[![Build Status](https://github.com/kwhat/requestful/workflows/continuous-integration/badge.svg)](https://github.com/kwhat/requestful/actions?query=workflow%3Acontinuous-integration)[![Total Downloads](https://camo.githubusercontent.com/e230f0041bf89df298e61ddbd466a9f9a16e5a3328d21e7e2bf9071ce0f46d8f/68747470733a2f2f706f7365722e707567782e6f72672f6b776861742f7265717565737466756c2f646f776e6c6f616473)](https://packagist.org/packages/kwhat/requestful)[![License](https://camo.githubusercontent.com/40a28b51d3ea6f5fabc3781fae6c794c06f298b43b6b4a8000ecbdd9d895b073/68747470733a2f2f706f7365722e707567782e6f72672f6b776861742f7265717565737466756c2f6c6963656e7365)](https://packagist.org/packages/kwhat/requestful)[![composer.lock available](https://camo.githubusercontent.com/96995b86c6430f86426f14aed7810efce98b00a0b9b0b46558ed3cf11fdce810/68747470733a2f2f706f7365722e707567782e6f72672f6b776861742f7265717565737466756c2f636f6d706f7365726c6f636b)](https://packagist.org/packages/kwhat/requestful)

Requestful: A simple PSR compatible HTTP client library
=======================================================

[](#requestful-a-simple-psr-compatible-http-client-library)

The goal of this library is to provide a short, simple and easy to understand alternative to [Guzzle](https://github.com/guzzle/guzzle).

- Uses the latest [PSR](https://www.php-fig.org/psr/) standards and recommendations
    - [PSR-7](https://www.php-fig.org/psr/psr-7/) HTTP Message Interfaces
    - [PSR-17](https://www.php-fig.org/psr/psr-17/) HTTP Factories
    - [PSR-18](https://www.php-fig.org/psr/psr-17/) HTTP Client
- Supports both synchronous and asynchronous HTTP requests
- [A+ Promises](https://promisesaplus.com/) with a Guzzle compatible interface
- Modern PHP 7 support
- Hard ext-curl requirement

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

[](#installation)

```
composer require kwhat/requestful
```

Usage
-----

[](#usage)

You will need a PSR-17 implantation to use this library. Personally I enjoy working with [nyholm/psr7](https://github.com/Nyholm/psr7), but any library that provides psr/http-factory will be sufficient.

```
$factory = new Nyholm\Psr7\Factory\Psr17Factory();
$client = new Requestful\Http\Client($factory);
$request = $factory->createRequest(
    "GET",
    "https://samples.openweathermap.org/data/2.5/weather?q=Los%20Angeles"
);

// Send a synchronous request
$response = $client->sendRequest($request);

var_dump(
    $response->getStatusCode(), // int(200)
    $response->getHeaderLine("content-type"), // string(30) "application/json; charset=utf8"
    $response->getBody() // string(459) "{"coord": {...}, "weather": {...}, ...}"
);

// Send an asynchronous request
$promise = $client->sendRequestAsync($request)
    ->then(function (Psr\Http\Message\ResponseInterface $response): string {
        return "Success: {$response->getStatusCode()}";
    });

var_dump($promise->wait()); // string(12) "Success: 200"
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 96.6% 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 ~448 days

Total

3

Last Release

1434d ago

PHP version history (2 changes)v0.1.0PHP &gt;=7.1.0

v0.2.1PHP &gt;=7.2.0

### Community

Maintainers

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

---

Top Contributors

[![kwhat](https://avatars.githubusercontent.com/u/676164?v=4)](https://github.com/kwhat "kwhat (28 commits)")[![stof](https://avatars.githubusercontent.com/u/439401?v=4)](https://github.com/stof "stof (1 commits)")

---

Tags

asyncasyncronouscurlphp7psr-17psr-18psr-7

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/kwhat-requestful/health.svg)

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

###  Alternatives

[guzzlehttp/psr7

PSR-7 message implementation that also provides common utility methods

8.0k1.0B3.1k](/packages/guzzlehttp-psr7)[league/uri

URI manipulation library

1.1k206.4M276](/packages/league-uri)[php-http/client-common

Common HTTP Client implementations and tools for HTTPlug

1.0k225.5M570](/packages/php-http-client-common)[laudis/neo4j-php-client

Neo4j-PHP-Client is the most advanced PHP Client for Neo4j

184616.9k31](/packages/laudis-neo4j-php-client)[elastic/transport

HTTP transport PHP library for Elastic products

1920.6M7](/packages/elastic-transport)[phpro/http-tools

HTTP tools for developing more consistent HTTP implementations.

28137.8k](/packages/phpro-http-tools)

PHPackages © 2026

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