An example on how to write php7 extension
phpize
./configure
make
make test
make install
php.ini
extension=example.so
<?php
$c = new example("Hello");
echo $c->get(), "\n";
- No credit required
As always, do whatever you want ;) I do this to learn thing only