IMAP-based Authentication in PHP
When using IMAP-based user authentication in applications written in PHP (i.e.
Nextcloud, DokuWiki, etc.), debugging with a test script is essential. The
idea of using curl for authentication, is based on the external user
authentication plugin (see: nextcloud/user_external) of Nextcloud.