I don't know what kind of php extensions can be developed using zephir? #2412
Replies: 3 comments 3 replies
-
Any type of logic that you want to ship as single compiled PHP extension. Any composer package can be rewritten in Zephir and shipped as PHP extension... |
Beta Was this translation helpful? Give feedback.
-
I would like to write an extension that will log access to certain PHP variable arrays or superglobals. Example would be: <?php
print($_SERVER['REMOTE_ADDR']);
?> In that case when the request is being made the extension would log to a file Is it possible to do using Zephir? |
Beta Was this translation helpful? Give feedback.
-
For security purposes it would be great to have the extension to log any outgoing requests (get, post.. url, payload, headers) of file_get_contents, fopen, curl, fsockopen, mail, etc. |
Beta Was this translation helpful? Give feedback.
-
Can you give an example?
Beta Was this translation helpful? Give feedback.
All reactions