Just tried to call GO functions from PHP via FFI.
Make sure you have PHP 7.4
and ffi.enable=true
in your php.ini
.
git clone https://github.com/eislambey/php-ffi-go-example.git
go build -o libutil.so -buildmode=c-shared util.go
php example.php
php http_client_example.php