#bindings #module #php #extension

phper

The framework that allows us to write PHP extensions using pure and safe Rust whenever possible

31 unstable releases

Uses new Rust 2024

new 0.16.0 Apr 4, 2025
0.15.1 Feb 28, 2025
0.14.1 Jan 7, 2025
0.13.1 Jan 12, 2024
0.1.0 Dec 21, 2019

#100 in Development tools

Download history 112/week @ 2024-12-17 172/week @ 2024-12-24 144/week @ 2024-12-31 348/week @ 2025-01-07 163/week @ 2025-01-14 73/week @ 2025-01-21 69/week @ 2025-01-28 186/week @ 2025-02-04 370/week @ 2025-02-11 359/week @ 2025-02-18 577/week @ 2025-02-25 228/week @ 2025-03-04 232/week @ 2025-03-11 436/week @ 2025-03-18 192/week @ 2025-03-25 340/week @ 2025-04-01

1,262 downloads per month
Used in 2 crates

MulanPSL-2.0

225KB
5K SLoC

PHPER (PHP Enjoy Rust)

CI Crates Docs License

Rust ❤️ PHP

The framework that allows us to write PHP extensions using pure and safe Rust whenever possible.

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.

The projects using PHPER

License

MulanPSL-2.0.

Dependencies

~1–4MB
~73K SLoC