✓ PlayStation Classic or C64 Mini for free
✓ Save up to € 495
✓ Group discount
✓ PlayStation Classic oder C64 Mini gratis
✓ Bis zu 495 € sparen
✓ See you in 2022!
✓ Bis 2022!
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.
Content & Process
Since PHP 7.4 there is no need to write a PHP extension if we want to use an existing library. But is it really easier to communicate with external libraries through PHP FFI? Doesn’t it make more sense to prioritize the development of extensions regardless of the need to learn another programming language?
Audience & Requirements
The target audience is intermediate and advanced PHP programmers who are not afraid to get their hands dirty with a little C programming.
Prior knowledge of C is not necessary. All you need is your own computer with Docker installed and at least an elementary knowledge of Linux. Necessary tools except the IDE will be provided in the form of a Linux Docker image. As an IDE you can use any text editor or the trial version of CLion from JetBrains.
Unfortunately, there will not be time to explain the basics of Docker during the workshop, so it is necessary to know Docker well or get familiar with it beforehand. You should at least be able to run Bash in the provided Docker container, as Docker will provide a unified environment across all platforms during the workshop.