Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/danog/php-tokio

Use any async Rust library from PHP!
https://github.com/danog/php-tokio

Last synced: 12 days ago
JSON representation

Use any async Rust library from PHP!

Awesome Lists containing this project

README

        

# php-tokio - Use any async Rust library from PHP!

Created by Daniil Gentili ([@danog](https://github.com/danog)).

This library allows you to use any async rust library from PHP, asynchronously.

It's fully integrated with [revolt](https://revolt.run): this allows full compatibility with [amphp](https://amphp.org), [PSL](https://github.com/azjezz/psl) and reactphp.

## Example

Here's an example, using the async Rust [reqwest](https://docs.rs/reqwest/latest/reqwest/) library to make asynchronous HTTP requests from PHP:

```php