Writing extensions for PHP is not all that hard thanks to the myriad of tools and macros made available to you by the PHP developers. Custom extensions are a great way to add new functionality to the language, or even just to speed up certain operations that would otherwise have been too slow.
There is a trade-off between speed and usability that makes extensions the best place to put most code - while it is possible to edit the Zend Engine directly, it does limit your distribution options.
There are lots of helpful libraries that have yet to be converted into PHP extensions - pick one and give it your best shot!
Want to learn PHP 7?
Hacking with PHP has been fully updated for PHP 7, and is now available as a downloadable PDF. Get over 1200 pages of hands-on PHP learning today!
If this was helpful, please take a moment to tell others about Hacking with PHP by tweeting about it!
Next chapter: Further reading >>
Previous chapter: Extensions Conclusion
Home: Table of Contents
Copyright ©2015 Paul Hudson. Follow me: @twostraws.