Skip to content

Latest commit

 

History

History
42 lines (32 loc) · 611 Bytes

README.md

File metadata and controls

42 lines (32 loc) · 611 Bytes

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