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.1k↓90%MITPHPPHP &gt;=8.1

Since Nov 26Pushed 1y 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 1w 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

28

—

LowBetter than 51% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity43

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

995d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/42109239?v=4)[Parsa](/maintainers/Parsoolak)[@Parsoolak](https://github.com/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

43.6k344.8k1](/packages/ccxt-ccxt)[composer/composer

Composer helps you declare, manage and install dependencies of PHP projects. It ensures you have the right stack everywhere.

29.5k199.6M3.4k](/packages/composer-composer)[team-reflex/discord-php

An unofficial API to interact with the voice and text service Discord.

1.1k434.3k26](/packages/team-reflex-discord-php)[internal/dload

Downloads binaries.

104237.5k20](/packages/internal-dload)[discord-php/http

Handles HTTP requests to Discord servers

24373.7k13](/packages/discord-php-http)[rector/rector-src

Instant Upgrade and Automated Refactoring of any PHP code

136411.0k14](/packages/rector-rector-src)

PHPackages © 2026

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