Compiling PHP with extensions

I’ve tried several times to add more extensions to my custom version of PHP using this script (magickwand, php-json, tidy to name just three), but I’m completely lost.

I got as far as downloading and uncompressing the additional extensions, but as soon as I try to work with phpize or add them to the installing script, it goes wrong.

Is there some kind of standardized process for configuring, installing and adding PHP extensions - and how do I get it to work?

I have this same question. I’m running into some errors regarding phpize and autoconf. I’ve searched the forum but don’t quite understand any of the workarounds. Can someone describe it in some easier terms here?