Download the PHP package aymanrb/php-mail-filters without Composer
On this page you can find all versions of the php package aymanrb/php-mail-filters. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download aymanrb/php-mail-filters
More information about aymanrb/php-mail-filters
Files in aymanrb/php-mail-filters
Package php-mail-filters
Short Description A library to help you create GMAIL like mail filters in your PHP Application
License MIT
Homepage https://github.com/aymanrb/mail_filters
Informations about the package php-mail-filters
PHP Mail Filters Library
This is a PHP package that enables you to create handy filtering features on E-mail messages (similar to that of Gmail filters feature) utilizing the PHP IMAP extension. The library makes it easy to hook up your own IMAP connection to it, all you need to do is implement few adapter methods for your library needed for the filtering and actions functionality.
Currently the adapter is implemented for the following IMAP libraries:
Features:
-
Apply filters your E-mail messages by setting criteria over the following fields:
- To
- All Recipients (To, Cc, Bcc)
- Subject
- From
- Body Text
- Attachments
-
Take one of the following actions based on matched filters:
- Delete message from your mailbox.
- Move the message to a different mail folder.
- Copy the message to another mail folder.
- Return user specified variables.
- Mark message status (Read, Unread and Important)
Requirements:
- PHP 7.2+
- PHP IMAP extension must be installed and activated
-
A PHP IMAP library to read messages (preferably use one of the 2 listed above if you have none, or write an adapter to the one you are using)
Example:
The above example will check if the given email contains "RID" in its subject and move the message to a new MailBox "Tagged" directory.
In Progress (Unfinished work):
- Adding unit and functional tests to the library
All versions of php-mail-filters with dependencies
php Version >=7.2.0