DEV Community

Discussion on: Welcome Thread - v38

Collapse
 
jasny profile image
Arnold Daniels

I'm here to share about writing PHP extensions (in C).

Collapse
 
chrisachard profile image
Chris Achard

Interesting! What is the most common use case for PHP extensions in C?

Collapse
 
jasny profile image
Arnold Daniels

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.

Thread Thread
 
chrisachard profile image
Chris Achard

Ah, neat!