News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

SitePoint PHP Blog:
Getting Started with PHP Extension Development via PHP-CPP
March 27, 2014 @ 12:15:08

On the SitePoint PHP blog today there's a new tutorial from Taylor Ren showing you how to get started with PHP-CPP for creating PHP extensions. PHP-CPP is a C++ library that makes it simpler (and faster) to create PHP-specific extensions.

In your dealings with PHP, you may come to consider writing a PHP extension yourself. [...] When it comes to choosing a tool to build PHP extensions, we see two different approaches: use more pro-PHP semantics, like Zephir or use more pro-C/C++ semantics, like PHP-CPP, which will be addressed in this article. For me, the main drive to select the second approach is simple: I started my programming hobby with C/C++, so I still feel more comfortable writing those lower level modules in C/C++. PHP-CPP's official site gives a few other reasons to do so.

He walks you through the installation of the library (for now, just a git clone) and getting the needed environment set up to be able to compile and test out the extension. He helps you set up the "skeleton" files for the extension, including some sample content. He includes code for a typical "Hello World" example extension as well as its use in a sample PHP script.

0 comments voice your opinion now!
tutorial extension introduction phpcpp library beginner

Link: http://www.sitepoint.com/getting-started-php-extension-development-via-php-cpp

blog comments powered by Disqus

Similar Posts

PHPBuilder.com: AJAX and PHP Part 3 - Post vs. Get Requests

PHPWomen.org: Filter and PHP 5.2

Simon Jodet: Partial mocks with Mockery

Zend Developer Zone: Dynamically Creating Compressed Zip Archives With PHP

PHPBuilder.com: Remote objects and Zend_Amf


Community Events





Don't see your event here?
Let us know!


introduction install opinion package library zendserver update list tips release series podcast language laravel framework deployment api symfony community interview

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework