Speaker
✓ Arduino Starter Kit or Amazon Echo Dot for free
✓ Group discount
✓ 2 in 1 conference special
Register now
✓ Arduino Starter Kit oder Amazon Echo Dot gratis
✓ Kollegenrabatt
✓ 2-in-1-Konferenzpaket
Jetzt anmelden
✓ 2-in-1 conference package
✓ Group discount
✓ Extra specials for freelancers
Register now
✓ 5-Tages-Special
✓ Kollegenrabatt
✓ Special Discount für Freelancer
Jetzt anmelden
Infos
09:00 - 17:00
Forum 7 WS
FFI Workshop
Description
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.