Skip to content

Latest commit

 

History

History
executable file
·
31 lines (27 loc) · 975 Bytes

File metadata and controls

executable file
·
31 lines (27 loc) · 975 Bytes

开发一个简单的PHP扩展来学习PHP扩展开发和PHP内核 (PHP7)

安装扩展

  1. git clone
    git clone https://github.com/wujunze/panda
  2. 编译安装拓展
    $ /path/to/phpize
    $ ./configure --with-php-config=/path/to/php-config
    $ make && make install
  1. 在php.ini最后添加
[panda]
extension = panda.so
  1. 重启php-fpm

使用扩展

  1. 查看已经安装的拓展 PHP_ext_Panda.png

  2. 测试一下拓展 Panda-run.png

特别感谢

  1. 信海龙的博客
  2. 深入理解PHP内核
  3. PHP 扩展开发及内核应用相关内容
  4. 零基础学习PHP拓展开发
  5. PHP 扩展开发 -- 使用 clion 配置