It’s safe Rust bindings for PHP's embed SAPI. Lets you execute PHP scripts from Rust without touching unsafe code.
GitHub: https://github.com/jhavenz/ripht-php-sapi
Crate: https://crates.io/crates/ripht-php-sapi
I'd plan to build some higher level Rust-based PHP tooling but need the proverbial clean slate. I also didn’t see any existing SAPI implementations for Rust, so ~3 months later, here it is. A good chunk of that was research. It’s surprising how scarce and archaic the educational material is out there. So, good thing there was 20+ years of battle-tested source code to learn from! Thank you to Nginx unit, php/php-fpm, apache, and Frankenphp. Being able to compare and contrast implementations was extremely helpful. Also gauging interest in content about PHP SAPI internals and Rust FFI if anyone's curious about that rabbit hole: https://www.patreon.com/posts/gauging-php-sapi-146489023
I’m open to feedback