ext-php-rs
tomlrs-php
ext-php-rs | tomlrs-php | |
---|---|---|
4 | 1 | |
531 | 5 | |
- | - | |
9.2 | 3.6 | |
about 2 months ago | about 2 years ago | |
Rust | PHP | |
Apache License 2.0 | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
ext-php-rs
-
PHP-Tokio β Use any async Rust library from PHP
The PHP <-> Rust bindings are provided by https://github.com/Nicelocal/ext-php-rs/ (our fork of https://github.com/davidcole1340/ext-php-rs with a bunch of UX improvements :).
php-tokio's integrates the https://revolt.run event loop with the https://tokio.rs event loop; async functionality is provided by the two event loops, in combination with PHP fibers through revolt's suspension API (I could've directly used the PHP Fiber API to provide coroutine suspension, but it was a tad easier with revolt's suspension API (https://revolt.run/fibers), since it also handles the base case of suspension in the main fiber).
-
OK so whose gonna tell them
Real chads write PHP websites and extend it with Rust
- Bindings for the Zend API to build PHP extensions natively in Rust
- ext-php-rs - Writing PHP extensions in Rust
tomlrs-php
-
Bindings for the Zend API to build PHP extensions natively in Rust
And a simple library using it: https://github.com/jphenow/tomlrs-php
What are some alternatives?
phanalist - Performant static analyzer for PHP, which is extremely easy to use. It helps you catch common mistakes in your PHP code.
wasmer-php - ππΈοΈ WebAssembly runtime for PHP
unixstring - An FFI-friendly null-terminated byte string
Azuriom - Azuriom is a complete open-source web solution for game servers. Enjoy dozens of extensions for endless possibilities. Already trusted by over 1,800 servers.
ext-php-rs - Bindings for the Zend API to build PHP extensions natively in Rust.
rust-php-ext - Rust library integrated into a PHP extension
linux - Linux kernel source tree
php-tokio - Use any async Rust library from PHP!
PyO3 - Rust bindings for the Python interpreter
php-async - Experimental asynchronous components for PHP
phabel - PHP transpiler - Write and deploy modern PHP 8 code, today.
Psalm - A static analysis tool for finding errors in PHP applications