https://github.com/kitech/php-go

go get github.com/kitech/php-go
cd $GOPATH/src/github.com/kitech/php-go

PHPCFG=/usr/local/php/bin/php-config make

cp examples.so /usr/local/php/lib/php/extensions/no-debug-non-zts-20160303/

/usr/local/php/bin/php -d extension=./sxy.so /var/www/test_so/2.php

PHPCFG=/usr/local/php/bin/php-config APP=sxy  make
cp sxy.so /usr/local/php/lib/php/extensions/no-debug-non-zts-20160303/