Skip to content

Files

Latest commit

Jun 3, 2025
2ad06f9 · Jun 3, 2025

History

History
24 lines (16 loc) · 732 Bytes

embed.md

File metadata and controls

24 lines (16 loc) · 732 Bytes

The embed SAPI

Configure the embed PHP SAPI.

PHP_SAPI_EMBED

  • Default: OFF
  • Values: ON|OFF

Enable the embedded PHP SAPI module for embedding PHP into application using C bindings.

The embed library is after the build phase located in the sapi/embed directory:

  • as a shared library libphp.so (*nix), or libphp.dylib (macOS), or phpembed.dll (Windows)
  • and a static library libphp.a (*nix), or phpembed.lib (Windows)

which can be further used in other applications. It exposes PHP API as C library for other programs to use PHP.