Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Sample code for PHP Extensions Made Eldrich tutorial
Failed to load latest commit information.
.gitignore added gitignore
README.markdown fix markdown
config.m4 hello, world
php_rlyeh.c hello, world
php_rlyeh.h hello, world


PHP Extensions Made Eldritch: Code Samples

The code in this repository accompanies the PHP Extensions Made Eldritch tutorial, available at:

If you don't want to copy/paste all of the code, you can clone this repo and check out sections as you go.

$ git clone git://

Part 2 of the tutorial (Hello, world!) is on the master branch. Stating in part 3, each "unit" has a branch: <branchname> at the beginning. You can checkout this branch if you want to see the code example in context.

For example, if you see branch: oop, you'd do:

$ git checkout -b oop origin/oop

Then you can compare what you're doing to the example.

Something went wrong with that request. Please try again.