dev-master
9999999-devmail parser
MIT
The Requires
by Arkadii Khramov
extension yii2
mail parser
"# yii2-archi", (*1)
mail parser, (*2)
The preferred way to install this extension is through composer., (*3)
Either run, (*4)
php composer.phar require --prefer-dist archiflash/yii2-archi "*"
or add, (*5)
"archiflash/yii2-archi": "*"
to the require section of your composer.json
file., (*6)
Once the extension is installed, simply use it in your code by :, (*7)
use archiflash\archi\MailParser; $db_credentials = []; $db_credentials["dsn"] = 'mysql:dbname=project;host=localhost'; $db_credentials["username"] = 'username'; $db_credentials["password"] = 'password'; $mail_credentials = []; $mail_credentials["imapPath"] = '{imap.yandex.ru:993/ssl/novalidate-cert/readonly}'; $mail_credentials["username"] = 'username'; $mail_credentials["password"] = 'password'; $parser = new MailParser($db_credentials, $mail_credentials); $result = $parser->parse(); // returns string
mail parser
MIT
extension yii2