Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP FFI GO Example

Just tried to call GO functions from PHP via FFI.

How to run?

Make sure you have PHP 7.4 and ffi.enable=true in your php.ini.

Clone this repository.

git clone https://github.com/eislambey/php-ffi-go-example.git

Build libutil.so

go build -o libutil.so -buildmode=c-shared util.go

Run

php example.php

php http_client_example.php

References

About

Calling GO functions from PHP via FFI.

Resources

Stars

49 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages