1. Go to this page and download the library: Download justinkbruce/utilities library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
justinkbruce / utilities example snippets
use Utilities\EmailReader;
$emailReader = new EmailReader("host", "username", "password", 993);
$mailBox = $emailReader->openMailBox("/imap/ssl");
use Utilities\EmailReaderError;
use Utilities\ErrorCode;
$result = $emailReader->openMailBox();
if ($result instanceof EmailReaderError) {
$error = $result->getError();
echo $error->errorCode; // e.g. "80002"
echo $error->errorMessage; // e.g. "Failed to open imap stream"
}
$emailReader->close();
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.