PHP-X是Zend API的C ++封装
PHP-X是Zend API的C ++封装
C/C++ 其它杂项
共787Star
详细介绍
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