All About PHP Extensions

Pear (PHP Extension and Application Repository) packages are 100% php code. They are just PHP codes that are structured based on Pear’s standards and that are ¬†deposited in a local directory and referenced in php.ini.

PECL packages are php extensions and need to be compiled and the resulted .so files must be deposited in the extensions directory (extension_dir in php.ini).

When you run a command such as

yum install php5-gd


apt-get install php5-gd

The dynamic shared library file (.so) is generated and installed for you automatically.



Introduction to extension writing

Wrapping C++ Classes in a PHP Extension

phpize info

Writing Php Extensions

About php extensions

PHP Coding Standards