Documentation

The PHP-CPP library is fully documented. See the menu on the left for instructions how to install PHP-CPP on your server and how to create your own first extension.

How does PHP load its extensions?

Generate output and errors

Register native functions

Function parameters

Calling functions

Lambda functions

Classes and objects

Constructors and destructors

Class inheritance

Magic methods

Magic interfaces

Special features

Class properties

Exceptions

Working with variables

Global and class level constants

Loading settings from php.ini

Extension callbacks

Namespaces

Dynamic loading

Feedback via GitHub

The documentation - and in fact the entire library - is a work in progress. If you find any bugs, mistakes or when you see that important information is missing, please let us know via GitHub.