https://github.com/phper-framework/phper
The framework that allows us to write PHP extensions using pure and safe Rust whenever possible.
https://github.com/phper-framework/phper
binding extension php rust
Last synced: about 1 month ago
JSON representation
The framework that allows us to write PHP extensions using pure and safe Rust whenever possible.
- Host: GitHub
- URL: https://github.com/phper-framework/phper
- Owner: phper-framework
- License: other
- Created: 2019-12-11T15:04:49.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2025-04-09T15:57:46.000Z (about 2 months ago)
- Last Synced: 2025-04-09T16:52:16.982Z (about 2 months ago)
- Topics: binding, extension, php, rust
- Language: Rust
- Homepage:
- Size: 1010 KB
- Stars: 311
- Watchers: 8
- Forks: 20
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-rust - phper-framework/phper
- awesome-rust - phper-framework/phper - The framework that allows us to write PHP extensions using pure and safe Rust whenever possible (Development tools / FFI)
- fucking-awesome-rust - phper-framework/phper - The framework that allows us to write PHP extensions using pure and safe Rust whenever possible (Development tools / FFI)
- fucking-awesome-rust - phper-framework/phper - The framework that allows us to write PHP extensions using pure and safe Rust whenever possible (Development tools / FFI)
README
# PHPER (PHP Enjoy Rust)
[](https://github.com/phper-framework/phper/actions/workflows/ci.yml)
[](https://crates.io/crates/phper)
[](https://docs.rs/phper)
[](https://github.com/phper-framework/phper/blob/master/LICENSE)## Rust ❤️ PHP
The framework that allows us to write PHP extensions using pure and safe Rust whenever possible.
## Documentation & Tutorial
- Documentation:
- Tutorial:## Requirement
### Necessary
- **rust** 1.85 or later
- **libclang** 9.0 or later
- **php** 7.0 or later### Tested Support
| **Category** | **Item** | **Status** |
| --------------- | --------- | ---------- |
| **OS** | Linux | ✅ |
| | macOS | ✅ |
| | Windows | ❌ |
| **PHP Version** | 7.0 ~ 7.4 | ✅ |
| | 8.0 ~ 8.4 | ✅ |
| **PHP Mode** | NTS | ✅ |
| | ZTS | ❌ |
| **SAPI** | CLI | ✅ |
| | FPM | ✅ |
| **Debug** | Disable | ✅ |
| | Enable | ❌ |## Examples
See [examples](https://github.com/phper-framework/phper/tree/master/examples).
## The projects using PHPER
- [apache/skywalking-php](https://github.com/apache/skywalking-php) - The PHP Agent for Apache SkyWalking, which provides the native tracing abilities for PHP project.
- [phper-framework/jieba-php](https://github.com/phper-framework/jieba-php) - The Jieba Chinese Word Segmentation Implemented in Rust Bound for PHP.
## License
[MulanPSL-2.0](https://github.com/phper-framework/phper/blob/master/LICENSE).