Mostly binding to existing C libraries. For instance, I created a base58 extension that uses Bitcoin's libbase58. Encoding implementations in pure PHP are just too slow.
I'm also writing some other, more high-level language, libs like an implementation of PSR-7. But that's less common.
I'm here to share about writing PHP extensions (in C).
Interesting! What is the most common use case for PHP extensions in C?
Mostly binding to existing C libraries. For instance, I created a base58 extension that uses Bitcoin's libbase58. Encoding implementations in pure PHP are just too slow.
I'm also writing some other, more high-level language, libs like an implementation of PSR-7. But that's less common.
Ah, neat!