All Projects â†’ swoole â†’ Phpx

swoole / Phpx

Licence: apache-2.0
💗 C++ wrapper for Zend API

PHP-X

Build Status License

C++ wrapper for Zend API

PHP-X

Requirements

  • PHP 7.2 or later
  • Linux/MacOS/Windows
  • GCC 4.8 or later
  • Composer

Build phpx (bin)

./build.sh
sudo cp bin/phpx /usr/local/bin

Build libphpx.so

cmake .
make -j 4
sudo make install

Create Project

phpx create cpp_ext

Generate ArgInfo & Function Entires

php script/gen_stub.php your_stub_dir

Build extension

cd examples/cpp_ext
phpx build -v
sudo phpx install 

Load your extension

Edit php.ini, add extension=cpp_ext.so

Run

php echo.php
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].