Skip to content

hanhan1978/php-ffi-samples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP-FFI samples

CircleCI

Requirements

  • PHP 7.4 with FFI enabled
  • go 1.3 or higher
  • gcc

how to check

checkout this repository

$ make
$ composer install
$ ./vendor/bin/phpunit

PHP-FFI with C

  • src/lib/sample.c
  • src/ArgumentsampleC

PHP-FFI with Go

Basically, use c code as interface to prevent seg fault.

  • src/lib/go-sample.c
  • src/ArgumentsampleGo

About

Sample PHP & C programs to understand how PHP-FFI works

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published