Library PHP Tek 2025 Introduction to PHP Extensions
Introduction to PHP Extensions

Log in to watch this talk

You need to be logged in to access this video. If you don't have an account, purchase a virtual pass for the latest php[tek] conference to get access to the full video library.

Introduction to PHP Extensions

Derick Rethans Derick Rethans PHP Tek 2025 Advanced Standard (50 minutes)

In this presentation, we take a first look at writing PHP extensions. Using step-by-step examples, we'll take a function written in PHP and convert them into a loadable extension using C. We'll then test both versions and compare the results. After seeing the size and scope of the benefits that can be realized with only a few minor changes, you'll want to try it out for yourself. You'll also understand why we start with simple things, and not try to rewrite all of Symfony or Laravel in C. You will learn: - What PHP extensions are, and which different types there are. - Why you might want to write a PHP extension. - How you write your first PHP extension, with practical tips and tricks.