 <p>Since the library I wanted to use was not written as a PHP extension, I had to write a wrapper extension in C, creating a PHP method which takes PHP arguments and calls the library function using the arguments after they are transformed (e.g. using a pointer for the memory address).</p>