Skip to content

eislambey/php-ffi-go-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published