This is a template for creating PHP extensions using cargo-generate.
-
Install
cargo-generate
if you haven't already:cargo install cargo-generate
-
Generate a new project using this template:
cargo generate extphprs/ext-php-rs-template
-
Follow the prompts to set up your new PHP extension project.
- Basic PHP extension structure
- Example function
- Composer project with pie support
- GitHub Actions CI/CD setup