How to use C static library (.a file) in PHP

In one of our projects, we specifically and forcibly have to create static C ++ libraries (.a files) , and then use them in PHP (web Application). We can successfully create .a files, now wondering if anyone can help us determine how to use them in PHP. The ".a file" will accept some input and return some output that can be used in the web application.

+4
source share
1 answer

Here is a good tutorial on creating PHP extensions. I have used this in the past and it works well.

http://devzone.zend.com/1435/wrapping-c-classes-in-a-php-extension/

+2
source

Source: https://habr.com/ru/post/1438664/


All Articles