PHP Architect · Vol 18, Issue 11 · November 2019
Building PHP Extensions With C++
by Lochemem Michael
PHP extensions are primarily composed of additions (functions and classes) to the PHP userland. Considering the PHP virtual machine is built in C, it holds that extensions are generally idiomatic C-based syntaxes. C++, a syntax-base with C-linkage capability, is an eligible extension-builder language and quite robust in its offerings. In particular, C++ 11 and newer versions boast modern features such as Lambda functions, the auto keyword, and templates. Together they can allow for the materialization of powerful PHP modules when used in conjunction with PHP engine-facing syntax.
The full article is in PHP Architect Vol 18, Issue 11. Subscribe to read it and every new issue.