Sign inSign up

kambo22/php-ffi-php-poland

By kambo22

•Updated almost 3 years ago

All important tools for workshop "PHP FFI versus extension development: Which approach is better?"

Image
0

187

kambo22/php-ffi-php-poland repository overview

⁠PHP FFI versus extension development: Which approach is better?

In this workshop you will learn how to communicate with external libraries through PHP FFI and how to do exactly the same with PHP extension written in pure C. Together we will overcome common pitfalls and discover when we should write an extension and when FFI.

At the end of workshop you will how to:

  • Call C code from PHP without the necessity of writing an extension.
  • Create simple PHP extensions in C.
  • Distinguish when to use FFI and when to write extensions.

⁠Starting Docker Container with a prebuilt environment

You will need Docker and Docker compose to get started.

docker-compose run cli

or (for Compose V2)

docker compose run cli

⁠Presentation

http://bohuslav.simek.si/php-poland-duckdb-ffi-extension-workshop/⁠

Tag summary

Content type

Image

Digest

sha256:c70bdc3da…

Size

929.4 MB

Last updated

almost 3 years ago

docker pull kambo22/php-ffi-php-poland