PHPackages                             tpmanc/tiu-mailbox - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Mail &amp; Notifications](/categories/mail)
4. /
5. tpmanc/tiu-mailbox

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

tpmanc/tiu-mailbox
==================

Get tiu.ru orders and messages from mailbox

018PHP

Since Jun 14Pushed 8y ago1 watchersCompare

[ Source](https://github.com/tpmanc/tiu-mailbox)[ Packagist](https://packagist.org/packages/tpmanc/tiu-mailbox)[ RSS](/packages/tpmanc-tiu-mailbox/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

tiu-mail
========

[](#tiu-mail)

Get tiu.ru orders and messages from mailbox.

REQUIREMENTS
------------

[](#requirements)

- [php imap extension](http://php.net/manual/imap.setup.php)

Install via Composer
--------------------

[](#install-via-composer)

Run the following command

```
$ composer require tpmanc/tiu-mailbox "*"
```

or add

```
$ "tpmanc/tiu-mailbox": "*"
```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

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

$messages = $tiu->getMessages(); // get array of user messages
$orders = $tiu->getOrders(); // get array of user orders

$tiu->close();
```

### Message object

[](#message-object)

Info about user message

```
...

$messages = $tiu->getMessages(); // get array of user messages
foreach ($messages as $message) {
    echo 'tiu id: ' . $message->getId();
    echo 'theme: ' . $message->getTitle();
    echo 'link: ' . $message->getLink();
}
...
```

### Order object

[](#order-object)

Info about user order

```
...

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

###  Health Score

20

—

LowBetter than 17% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/995c4519028795d89f3c599b17f7379977f82163da07b39cdfced90fdf665fd0?d=identicon)[tpmanc](/maintainers/tpmanc)

---

Top Contributors

[![tpmanc](https://avatars.githubusercontent.com/u/6450943?v=4)](https://github.com/tpmanc "tpmanc (16 commits)")

### Embed Badge

![Health badge](/badges/tpmanc-tiu-mailbox/health.svg)

```
[![Health](https://phpackages.com/badges/tpmanc-tiu-mailbox/health.svg)](https://phpackages.com/packages/tpmanc-tiu-mailbox)
```

###  Alternatives

[tijsverkoyen/css-to-inline-styles

CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is very useful when you're sending emails.

5.8k494.8M199](/packages/tijsverkoyen-css-to-inline-styles)[symfony/mailer

Helps sending emails

1.6k355.7M764](/packages/symfony-mailer)[sendgrid/sendgrid

This library allows you to quickly and easily send emails through Twilio SendGrid using PHP.

1.5k46.4M149](/packages/sendgrid-sendgrid)[minishlink/web-push

Web Push library for PHP

1.9k11.4M42](/packages/minishlink-web-push)[pelago/emogrifier

Converts CSS styles into inline style attributes in your HTML code

94843.3M89](/packages/pelago-emogrifier)[thomasjohnkane/snooze

Schedule future notifications and reminders in Laravel

9071.5M2](/packages/thomasjohnkane-snooze)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
