- Source code: sapi/embed/CMakeLists.txt
Configure the embed
PHP SAPI.
- 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), orlibphp.dylib
(macOS), orphpembed.dll
(Windows) - and a static library
libphp.a
(*nix), orphpembed.lib
(Windows)
which can be further used in other applications. It exposes PHP API as C library for other programs to use PHP.