Skip to content
💗 C++ wrapper for Zend API
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
console Merge remote-tracking branch 'origin/master' Apr 24, 2019
examples 兼容 PHP7.2 Dec 18, 2017
include 优化 Apr 24, 2019
script 修复 pack.php bug, phar.readonly 无法动态设置 Apr 24, 2019
src 支持 PHP7.3 Apr 11, 2019
.gitignore 忽略工程文件 Apr 12, 2019
.travis.yml 修复编译错误 Dec 25, 2017
CMakeLists.txt
LICENSE Initial commit May 18, 2017
README.md Update README.md Apr 22, 2019
build.sh 修复 pack.php bug, phar.readonly 无法动态设置 Apr 24, 2019
logo.png added logo.png Jun 10, 2017
phpinfo.php add phpinfo page. May 18, 2017

README.md

PHP-X

Build Status License

C++ wrapper for Zend API

PHP-X

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
You can’t perform that action at this time.