godruoyi / rust-php-extension-sample
Installation script for sample rust php extension
Installs: 3
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/godruoyi/rust-php-extension-sample
Requires
- php: >=8.1
- ext-curl: *
Requires (Dev)
- pestphp/pest: ^3.7
README
This is a test project, mainly used to explore how to install PHP extensions that are written in Rust. The goal is to create a Composer package that can install the PHP extension directly without using PECL or PIE.
Installation
First, install this package:
composer require godruoyi/rust-php-extension-sample
Then, install the PHP extension by running the following command:
vendor/bin/install-sample-extension
Risks
- Package maintainers need to provide pre-compiled binaries for different platforms and PHP versions.
- These pre-compiled binary files need to be saved in a certain location, currently GitHub seems to be the most suitable option that can be published with the code repository when new releases are created.
- The operation of installing the extension is divided into two steps, which may cause confusion for some users.