Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mastering PHP FFI: Practical Examples Featuring DuckDB

Code and support files for article "Mastering PHP FFI: Practical Examples Featuring DuckDB"

Repository content

How to use docker image

Prefix the header file with the #define FFI_LIB "./libduckdb.so" directive:

docker run --rm -v "$PWD":/tmp/example -w /tmp/example kambo22/php-ffi-duckdb-article echo '#define FFI_LIB "./libduckdb.so"' >> duckdb-ffi.h

Resolve macros in header file:

docker run --rm -v "$PWD":/tmp/example -w /tmp/example kambo22/php-ffi-duckdb-article cpp -P -C -D"attribute(ARGS)=" duckdb.h >> duckdb-ffi.h

Run DuckDB example "duckdb.php":

docker run --rm -v "$PWD":/tmp/example -w /tmp/example kambo22/php-ffi-duckdb-article php duckdb.php

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages