Crate phper

Source
Expand description

§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

CategoryItemStatus
OSLinux
macOS
Windows
PHP Version7.0
7.1
7.2
7.3
7.4
8.0
8.1
8.2
8.3
8.4
PHP ModeNTS
ZTS
SAPICLI
FPM
DebugDisable
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.

Re-exports§

pub use crate::errors::Error;
pub use crate::errors::Result;
pub use crate::errors::ok;
pub use phper_alloc as alloc;
pub use phper_sys as sys;

Modules§

arrays
Apis relate to zend_array.
classes
Apis relate to zend_class_entry.
errors
The errors for crate and php.
functions
Apis relate to zend_function_entry.
ini
Apis relate to zend_ini_entry_def.
modules
Apis relate to zend_module_entry.
objects
Apis relate to zend_object.
output
Logs and echo facilities.
references
Apis relate to zend_resource.
resources
Apis relate to zend_resource.
strings
Apis relate to zend_string.
types
Apis relate to PHP types.
values
Apis relate to zval.

Macros§

cg
Equivalent to the php CG.
deprecated
PHP deprecated logging.
echo
PHP echo.
eg
Equivalent to the php EG.
error
PHP error logging, will exit the request.
notice
PHP notice logging.
pg
Equivalent to the php PG.
sg
Equivalent to the php SG.
warning
PHP warning logging.

Attribute Macros§

php_get_module
PHP module entry, wrap the phper::modules::Module write operation.