PHPackages                             cirkan/mailinboundparser - 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. cirkan/mailinboundparser

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

cirkan/mailinboundparser
========================

MailInboundParser is meant to be used for eaiser handling of inbound mails for your PHP applications

v1.3(2y ago)16MITPHPPHP &gt;=7.4|^8.1

Since Jul 6Pushed 2y ago1 watchersCompare

[ Source](https://github.com/CirkaN/MailInboundParser)[ Packagist](https://packagist.org/packages/cirkan/mailinboundparser)[ Docs](https://github.com/cirkan/mailinboundparser)[ RSS](/packages/cirkan-mailinboundparser/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (12)Versions (10)Used By (0)

MailInboundParser
=================

[](#mailinboundparser)

InboundParser should make your life easier if you have to deal with inbound emails.

#### What can you expect from this package?

[](#what-can-you-expect-from-this-package)

1.Email Parsing
2.Metadata Extraction
3.Content Extraction
4.Attachment Handling
5.Customization

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require cirkan/mailinboundparser
```

Usage
-----

[](#usage)

```
$mailInboundParser = new CirkaN\MailInboundParser(new MailgunProvider());
echo $mailInboundParser->getDriver()
                       ->setMailBody($mailBody)
                       ->getSubject();
```

### Available Methods

[](#available-methods)

```
    public function setMailBody(array $mailBody): self;

    public function getSubject(): string;

    public function getRawBody(): string;

    public function getSender(): string;

    public function getTimestamp(): string;

    public function getHeaderValue(string $value): string;

    public function getDate(): ?Carbon;

    public function getHtmlBody(): string;

```

### Available Providers

[](#available-providers)

```
Mailgun

```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](https://github.com/CirkaN/.github/blob/main/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Nikola Cirkovic](https://github.com/CirkaN)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

Support
-------

[](#support)

[![Buy Me A Coffee](https://camo.githubusercontent.com/0cf29a542375e1a46e84d8bf5805a4e5c0a6ee98b6547ccdc0c55eed49d99c69/68747470733a2f2f63646e2e6275796d6561636f666665652e636f6d2f627574746f6e732f76322f64656661756c742d79656c6c6f772e706e67)](https://www.buymeacoffee.com/cirkovic)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~134 days

Total

4

Last Release

1011d ago

PHP version history (3 changes)v1.0PHP 7.4|^8.1

v1.2PHP 7.2|^8.1

v1.3PHP &gt;=7.4|^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/08ebdbfa5174af4812aa3adb38e66c79e10505ff07f48d7285c434a4488f294c?d=identicon)[CirkaN](/maintainers/CirkaN)

---

Top Contributors

[![CirkaN](https://avatars.githubusercontent.com/u/32557332?v=4)](https://github.com/CirkaN "CirkaN (28 commits)")

---

Tags

laravelCirkaNmailinboundparser

###  Code Quality

TestsPest

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/cirkan-mailinboundparser/health.svg)

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

###  Alternatives

[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[xammie/mailbook

Laravel Mail Explorer

482458.3k1](/packages/xammie-mailbook)[spatie/laravel-notification-log

Log notifications sent by your Laravel app

207902.8k](/packages/spatie-laravel-notification-log)[wnx/laravel-sends

Keep track of outgoing emails in your Laravel application.

200427.3k](/packages/wnx-laravel-sends)[spatie/laravel-discord-alerts

Send a message to Discord

151408.0k](/packages/spatie-laravel-discord-alerts)[backstage/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24157.5k5](/packages/backstage-laravel-mails)

PHPackages © 2026

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