#php #binding #extension #module

phper

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

22 releases (9 breaking)

0.10.2 Jan 12, 2023
0.9.0 Dec 18, 2022
0.6.0 Nov 29, 2022
0.4.0-alpha.3 Jul 1, 2022
0.1.0 Dec 21, 2019

#218 in Development tools

Download history 247/week @ 2022-12-08 154/week @ 2022-12-15 126/week @ 2022-12-22 135/week @ 2022-12-29 296/week @ 2023-01-05 214/week @ 2023-01-12 141/week @ 2023-01-19 172/week @ 2023-01-26 232/week @ 2023-02-02 189/week @ 2023-02-09 207/week @ 2023-02-16 118/week @ 2023-02-23 140/week @ 2023-03-02 179/week @ 2023-03-09 147/week @ 2023-03-16 193/week @ 2023-03-23

728 downloads per month
Used in phper-doc

MulanPSL-2.0

170KB
3.5K SLoC

PHPER (PHP Enjoy Rust)

CI Crates Docs Lines License

Rust ❤️ PHP

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

Document & Tutorial

Requirement

Necessary

  • rust 1.65 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
    • 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.2–3MB
~70K SLoC