Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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!
- Host: GitHub
- URL: https://github.com/danog/php-tokio
- Owner: danog
- License: apache-2.0
- Created: 2023-08-27T14:27:52.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-03-31T16:20:24.000Z (8 months ago)
- Last Synced: 2024-10-12T15:58:49.438Z (about 1 month ago)
- Language: Rust
- Size: 54.7 KB
- Stars: 320
- Watchers: 4
- Forks: 13
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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