#bindings #php #extension #module

phper

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

32 releases

Uses new Rust 2024

new 0.16.1 May 1, 2025
0.15.1 Feb 28, 2025
0.13.1 Jan 12, 2024
0.13.0 Nov 24, 2023
0.1.0 Dec 21, 2019

#134 in Development tools

Download history 234/week @ 2025-01-10 96/week @ 2025-01-17 66/week @ 2025-01-24 104/week @ 2025-01-31 311/week @ 2025-02-07 364/week @ 2025-02-14 482/week @ 2025-02-21 401/week @ 2025-02-28 221/week @ 2025-03-07 378/week @ 2025-03-14 276/week @ 2025-03-21 200/week @ 2025-03-28 346/week @ 2025-04-04 182/week @ 2025-04-11 97/week @ 2025-04-18 106/week @ 2025-04-25

757 downloads per month
Used in 2 crates

MulanPSL-2.0

245KB
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