Lochemem Bruno Michael

.Lochemem Bruno Michael, a recent graduate of the United States International University – Africa, is a PHP enthusiast from Kampala, Uganda. Author of PHP libraries such as bingo-functional and the fauxton-client as well as a PHP C++-powered extension for CouchDB, he is a passionate open-source contributor. In addition to PHP, Mr. Lochemem loves to dabble with other web technologies like JavaScript, and TypeScript. He is also a passionate cinephile profoundly interested in many things such as rap music, video games, podcasting, and sports.

Articles

Building PHP Extensions With C++

By Lochemem Bruno 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.

Published in Object Orientation, November 2019