php-rs-parser
Fast, fault-tolerant PHP parser producing a typed AST with source spans. Covers PHP 7.4–8.5 syntax (plus PHP 8.6 partial function application) and recovers from syntax errors.
let result = parse;
assert!;
println!;
Part of the rust-php-parser workspace. See the main README for the full guide, and docs.rs/php-rs-parser for the API reference.
License
BSD 3-Clause