PHPackages                             saraf/async-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. saraf/async-request

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

saraf/async-request
===================

a wrapper around reactphp/http

0.0.1(2y ago)15.0k↓50%MITPHPPHP &gt;=8.1

Since Nov 26Pushed 10mo agoCompare

[ Source](https://github.com/SarafApp/async-request)[ Packagist](https://packagist.org/packages/saraf/async-request)[ RSS](/packages/saraf-async-request/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (3)Versions (3)Used By (0)

Saraf Async Request (A ReactPHP Wrapper)
========================================

[](#saraf-async-request-a-reactphp-wrapper)

It's just a simple wrapper/helper around `reactphp/http` library. which creates a better **Developer Experience** and faster development..

Easy Setup
----------

[](#easy-setup)

```
// initialize basic class
$api = new \Saraf\AsyncRequestJson()
$api->setConfig([
    "baseURL" => "https://jsonplaceholder.typicode.com"
]);

// It will return Promise
$api->post("/todos", [
    'title' => 'learn async-request lib',
    'isDone' => false
])->then(function ($response) {
    // $response contains result, status code, headers and body of that request
});
```

### Customize Response Handler

[](#customize-response-handler)

This way response body automatically decoded

```
$api->setResponseHandler(\Saraf\ResponseHandlers\HandlerEnum::Json);
```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity42

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

904d ago

### Community

Maintainers

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

---

Top Contributors

[![hasanparasteh](https://avatars.githubusercontent.com/u/42239446?v=4)](https://github.com/hasanparasteh "hasanparasteh (15 commits)")

### Embed Badge

![Health badge](/badges/saraf-async-request/health.svg)

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

###  Alternatives

[ccxt/ccxt

A cryptocurrency trading API with more than 100 exchanges in JavaScript / TypeScript / Python / C# / PHP / Go

41.5k328.9k1](/packages/ccxt-ccxt)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78126.4M414](/packages/react-http)[ezimuel/ringphp

Fork of guzzle/RingPHP (abandoned) to be used with elasticsearch-php

179109.4M10](/packages/ezimuel-ringphp)[discord-php/http

Handles HTTP requests to Discord servers

25318.7k8](/packages/discord-php-http)[clue/soap-react

Simple, async SOAP webservice client library, built on top of ReactPHP

64118.0k2](/packages/clue-soap-react)[php-http/react-adapter

React HTTP Adapter

19260.9k3](/packages/php-http-react-adapter)

PHPackages © 2026

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