Overview of PHP-IMAP
masterPHP-IMAP is a PHP wrapper for IMAP communication that does not require the php-imap extension to be installed or enabled. It provides full protocol integration, supporting the IMAP IDLE operation and modern oAuth authentication processes.
While the extension is not required, enabling the php-imap module can improve message decoding quality and is necessary if you need to use legacy protocols like POP3.