archiflash / yii2-archi
mail parser
Installs: 9
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- yiisoft/yii2: ~2.0.0
This package is not auto-updated.
Last update: 2025-06-12 01:20:47 UTC
README
"# yii2-archi"
тестовое расширение
mail parser
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist archiflash/yii2-archi "*"
or add
"archiflash/yii2-archi": "*"
to the require section of your composer.json
file.
Usage
Once the extension is installed, simply use it in your code by :
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