Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/veewee/psr18-react-browser
- Owner: veewee
- License: mit
- Created: 2023-09-29T11:46:43.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-24T08:03:15.000Z (12 months ago)
- Last Synced: 2024-09-26T22:47:02.026Z (about 1 month ago)
- Language: PHP
- Size: 12.7 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
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),
]));
```