Commit

9dbc149

This is the one I ended up building. I asked where JSX ergonomics was missing, someone said PHP, and I don't write PHP. I write Rust and TypeScript. Built it anyway. It's a Rust compiler that puts JSX inside .php files and lowers it to plain PHP ahead of time:
php
function Badge(string $name): Html {
    return <span class="badge">{$name}</span>;
}
Same line numbers, so Xdebug and PHPStan still point at your code. Escaped by default — a dynamic onclick is a compile error, not an XSS. No template engine at runtime. The part I like most: PHP has an RFC for native markup expressions (php-src #22661). The compiler can emit that exact shape today, and one command rewrites your files to it in place. If the RFC lands, you drop my runtime. If it dies, you keep plain PHP. Not writing PHP myself, I leaned hard on verification: a fresh Laravel skeleton, real Symfony and Twig runtimes, PHPStan at max level, and 220 generated templates compared byte-for-byte against a hand-written reference renderer. Ready to publish, minus one thing. The name I've been using is already taken on crates.io by an unrelated JSON validator, so it needs a new one before v1.0.0. I liked mine, but I'm not fighting a JSON validator for it. Better names welcome.
QuotingNVNguyen Viet@bangnokia
php for sure xD

commit 9dbc149