PHP code example of zoltanlaca / email-reader
1. Go to this page and download the library: Download zoltanlaca/email-reader 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/ */
zoltanlaca / email-reader example snippets
use ZoltanLaca\EmailReader\Credentials\Imap;
use ZoltanLaca\EmailReader\EmailReader;
er = new EmailReader($credentials);
$emails = $reader
->searchEmails()
->subject('Subject name contains')
->since(new DateTimeImmutable('2019-07-01'))
->get(true);
var_dump($emails);