C++ wrapper for Zend API
- PHP 8.1 or later
- Linux/macOS/Windows
- GCC 4.8 or later
- Composer
./build.sh sudo cp bin/phpx /usr/local/bin
cmake . make -j 4 sudo make install sudo ldconfig
phpx create cpp_ext
php bin/gen_stub.php your_stub_dir
cd examples/cpp_ext phpx build -v sudo phpx install
Edit php.ini
, add extension=cpp_ext.so
php echo.php