PHPackages                             dastanaron/imapparser - 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. dastanaron/imapparser

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

dastanaron/imapparser
=====================

Mail parser based on the php-imap library

1361PHP

Since Jan 24Pushed 8y agoCompare

[ Source](https://github.com/dastanaron/IMAPParser)[ Packagist](https://packagist.org/packages/dastanaron/imapparser)[ RSS](/packages/dastanaron-imapparser/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Парсер E-mail - писем
=====================

[](#парсер-e-mail---писем)

English [here](README_en.md)

Данная мини-билиотечка может пригодиться в разных случаях, например для распарсивания заявок и складирования их в систему, или создание тикет систем, где заявку должен увидеть администратор или кто-то другой

Чтобы долго не обхяснять, скажу, что весь класс работает на библиотеке [IMAP](http://php.net/manual/ru/ref.imap.php), и соответственно, некоторые аргументы принимаются согласно этой документации.

Как пользоваться
----------------

[](#как-пользоваться)

Вызываем экземпляр класса, в качестве аргумента, передаем ему почтовый ящик, к которому подключаемся, пароль от него и [дескриптор](http://php.net/manual/ru/function.imap-open.php#refsect1-function.imap-open-parameters).

```
//Дескриптор - пример для яндекса (третий аргумент)
$imap = new IMAPParse('ВАШ ЯЩИК', 'ВАШ ПАРОЛЬ', '{imap.yandex.ru:993/imap/ssl/novalidate-cert}INBOX');
```

Дальше все зависит от того, что вы хотите.

**parseMails($criteria = 'NEW', $download=false)**, в скобках указаны параметры по умолчанию

Если нужно спарсить письма от конкретного отправителя, посмотрите пример в example.php, там как раз, оно самое. Если же нужно получить все новые сообщения, то в качестве критерия отправьте `NEW` или оставьте пустым.

Если же, нужно что-то посложнее, посмотрите [документацию](http://php.net/manual/ru/function.imap-search.php) параметр `criteria`.

Сохранение файлов вложений и хороший пример, смотрите в файле [example.php](example.php)

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

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://avatars.githubusercontent.com/u/25330618?v=4)[Github](/maintainers/dastanaron)[@dastanaron](https://github.com/dastanaron)

---

Top Contributors

[![dastanaron](https://avatars.githubusercontent.com/u/25330618?v=4)](https://github.com/dastanaron "dastanaron (1 commits)")

### Embed Badge

![Health badge](/badges/dastanaron-imapparser/health.svg)

```
[![Health](https://phpackages.com/badges/dastanaron-imapparser/health.svg)](https://phpackages.com/packages/dastanaron-imapparser)
```

###  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.8k505.3M227](/packages/tijsverkoyen-css-to-inline-styles)[minishlink/web-push

Web Push library for PHP

1.9k12.0M53](/packages/minishlink-web-push)[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[spatie/url-signer

Generate a url with an expiration date and signature to prevent unauthorized access

4422.3M16](/packages/spatie-url-signer)[mattketmo/email-checker

Throwaway email detection library

2742.0M5](/packages/mattketmo-email-checker)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)

PHPackages © 2026

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