panda

A simple extension for PHP

Stars
45

Develop a simple PHP extension to learn PHP extension development and the PHP kernel (PHP7)

Install the extension

  1. git clone
    git clone https://github.com/wujunze/panda
  2. Compilation and installation extension
    $ /path/to/phpize
    $ ./configure --with-php-config=/path/to/php-config
    $ make && make install
  1. Add at last in php.ini
[panda]
extension = panda.so
  1. Restart php-fpm

Use the extension

  1. View the extensions installed PHP_ext_Panda.png

  2. So let's test that out Panda-run.png

Special thanks to

  1. PHP
  2. PHP
  3. PHP
  4. PHP -- clion