Hello everyone! I would like to submit my pcap extension to PECL and maintain its code and documentation:
URL: https://github.com/rtckit/php-pcap-ext License: MIT Binds to: libpcap * URL: https://www.tcpdump.org/ * License: 3-clause BSD Its purpose is to provide bindings to libpcap (the library powering tools such as tcpdump and wireshark) and expose the packet flow as a PHP stream, thus no new classes/functions are added to the user space, only the `pcap` stream wrapper. Where available, the extension supports the option to put the stream in non-blocking mode, facilitating its use in stream_select() loops (or more elaborate event loop frameworks such as ReactPHP etc). >From an OS/architecture standpoint, the extension targets Linux on x86_64 and amd64; the target PHP version is >= 7.4 and actively testing against PHP 8. Best, Ciprian