31 Star 86 Fork 24

swoole / PHP-X

Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
Clone or download
README.md 380 Bytes
Copy Edit Web IDE Raw Blame History
韩天峰 authored 2017-06-10 14:06 . Create README.md

PHP-X

C++ wrapper for Zend API

PHP-X

Requirements

  • PHP 7.0 or later
  • Linux/MacOS/Windows
  • GCC 4.8 or later

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

Comment ( 0 )

Sign in for post a comment

C++
1
https://gitee.com/swoole/PHP-X.git
git@gitee.com:swoole/PHP-X.git
swoole
PHP-X
PHP-X
master

Search