Skip to content

Latest commit

 

History

History
32 lines (20 loc) · 516 Bytes

README.md

File metadata and controls

32 lines (20 loc) · 516 Bytes

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