PHP-X C++ wrapper for Zend API Requirements PHP 7.0 or later Linux/MacOS/Windows GCC 4.8 or later Composer Build phpx (bin) ./build.sh Build libphpx.so cmake . make -j 4 sudo make install Build extension cd examples/cpp_ext make sudo make install Load your extension Edit php.ini, add extension=cpp_ext.so Run php echo.php