cirkan/mailinboundparser

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

v1.3 2023-08-12 01:46 UTC

README

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

What can you expect from this package?

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

Installation

You can install the package via composer:

composer require cirkan/mailinboundparser

Usage

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

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

Mailgun

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

Support

Buy Me A Coffee