alef-backend-php
PHP (ext-php-rs) backend for alef
Generates Rust source code using ext-php-rs to expose a Rust library as a PHP 8.2+ extension. Produces #[php_class] structs with #[php_impl] method blocks, #[php_function] free functions, and serde-based conversion bridges. Async operations are handled via Tokio block_on to integrate with PHP's synchronous execution model. Supports readonly-class and array DTO generation styles and generates Composer package scaffolding.
Part of the alef polyglot binding generator.
License
MIT