Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/veewee/psr18-react-browser

A small PSR-18 bridge for react browser
https://github.com/veewee/psr18-react-browser

Last synced: 21 days ago
JSON representation

A small PSR-18 bridge for react browser

Awesome Lists containing this project

README

        

# A PSR-18 HTTP Client bridge for React HTTP browser

```bash
composer require veewee/psr18-react-browser
```

```php
sendRequest($request);
```

# Async

Since PHP 8.1 introduced fibers, this client can be used in parallel:

```php
async(fn () => $psr18Client->sendRequest($buildRequestFor($id)));

$responses = await(parallel([
$run(1),
$run(2),
$run(3),
]));
```