#php #extension #binding #module

phper

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

28 releases

new 0.14.1 Jan 7, 2025
0.13.1 Jan 12, 2024
0.13.0 Nov 24, 2023
0.12.0 May 14, 2023
0.1.0 Dec 21, 2019

#252 in Development tools

Download history 109/week @ 2024-09-17 192/week @ 2024-09-24 96/week @ 2024-10-01 311/week @ 2024-10-08 106/week @ 2024-10-15 94/week @ 2024-10-22 302/week @ 2024-10-29 160/week @ 2024-11-05 74/week @ 2024-11-12 270/week @ 2024-11-19 220/week @ 2024-11-26 168/week @ 2024-12-03 180/week @ 2024-12-10 112/week @ 2024-12-17 172/week @ 2024-12-24 130/week @ 2024-12-31

606 downloads per month
Used in 2 crates

MulanPSL-2.0

200KB
4.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.79 or later
  • libclang 9.0 or later
  • php 7.0 or later

Tested Support

  • OS
    • linux
    • macos
    • windows
  • PHP
    • version
      • 7.0
      • 7.1
      • 7.2
      • 7.3
      • 7.4
      • 8.0
      • 8.1
      • 8.2
      • 8.3
    • mode
      • nts
      • zts
    • sapi
      • cli
      • fpm
    • debug
      • disable
      • enable

Examples

See examples.

The projects using PHPER

  • apache/skywalking-php - The PHP Agent for Apache SkyWalking, which provides the native tracing abilities for PHP project.

License

MulanPSL-2.0.

Dependencies

~1–4.5MB
~79K SLoC