2017 © Pedro Peláez
 

library blizko-mailbox

Get blizko.ru orders and messages from mailbox

image

tpmanc/blizko-mailbox

Get blizko.ru orders and messages from mailbox

  • Wednesday, April 26, 2017
  • by tpmanc
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

tiu-mail

Get blizko.ru orders and messages from mailbox., (*1)

REQUIREMENTS

Install via Composer

Run the following command, (*2)

$ composer require tpmanc/blizko-mailbox "*"

or add, (*3)

$ "tpmanc/blizko-mailbox": "*"

to the require section of your composer.json file., (*4)

Usage

$blizko = new tpmanc\blizko\Blizko('{imap.yandex.ru:993/imap/ssl}INBOX', 'login@ya.ru', 'password');
$blizko = $blizko->setLimit(50); // set mail count per page (default = 20)
$pageCount = $blizko->getPageCount(); // get page count
$blizko = $blizko->getByPage(0); // find blizko emails on first page

$orders = $blizko->getOrders(); // get array of user orders

$blizko->close();

Order object

Info about user order, (*5)

...

$orders = $blizko->getOrders(); // get array of user orders
foreach ($orders as $order) {
    echo 'blizko id: ' . $message->getId();
    echo 'name: ' . $message->getUsername();
    echo 'link: ' . $message->getLink();
}
...

The Versions

26/04 2017

dev-master

9999999-dev https://github.com/tpmanc/blizko-mailbox

Get blizko.ru orders and messages from mailbox

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.4.0

 

The Development Requires

mail parser mailbox blizko blizko.ru