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
Requires
- php: >=7.4|^8.1
- illuminate/contracts: ^9.0
- spatie/laravel-package-tools: ^1.9.2
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.8
- nunomaduro/collision: ^6.0
- nunomaduro/larastan: ^2.0.1
- orchestra/testbench: ^7.0
- pestphp/pest: ^1.21
- pestphp/pest-plugin-laravel: ^1.1
- phpstan/extension-installer: ^1.1
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.0
- phpunit/phpunit: ^9.5
This package is auto-updated.
Last update: 2024-05-12 04:09:25 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.