Download the PHP package forked/mailreader without Composer

On this page you can find all versions of the php package forked/mailreader. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package mailreader

mailreader

Build StatusBuild statuscodecovCodacy BadgeMaintainability

Receive mail and attachments with PHP

This package can be used to...

Usage

Full documentation is a work in progress, see Phpunit tests folder for more example usage.

MailReader.php contains the class that works with the incoming email, and the database.

MailParser.php contains the class that works with any file that's in an email format.

mailPipe.php is a sample script using the MailReader class.

mailPipe.php expects to receive raw emails via STDIN.

You can run the script manually by using cat

Or type On Windows

You will likely want to copy mailPipe.php to your own script and adjust the parameters to suite your needs.

This library also allows you to easily parse an email given its content (headers + body).

Installation

Will pull composer forked/mail_mime-decode package in as dependency.

Setup

Configure your mail server to pipe emails to this script. See http://stuporglue.org/add-an-email-address-that-forwards-to-a-script/ for instructions.

Make this script executable, and edit the configuration options to suit your needs. Change permissions of the directories so that the user executing the script (probably the mail user) will have write permission to the file upload directory.

By default the script is configured to save pdf, zip, jpg, png and gif files. Edit the method array property $allowed_mime_types around line 47 to change this. Or call ->addMimeType() to add more.

Postfix configuration to manage email from a mail server

Next you need to forward emails to this script above. For that I'm using Postfix like a mail server, you need to configure /etc/postfix/master.cf

Add this line at the end of the file (specify myhook to send all emails to the script mailPipe.php)

Edit this line (register myhook)

License

Copyright 2012, Michael Moore [email protected] http://stuporglue.org

Licensed under the same terms as PHP itself and under the GPLv2 or Later. You are free to use this script for personal or commercial projects. Use at your own risk. No guarantees or warranties.

Support

  1. If you have problems, you are encouraged to post them on the MailReader GitHub issue tracker instead of as comments on my blog.
  2. MailReader is OpenSource. You can pay (or not) anyone you want (including yourself!) to work on MailReader, the code is here.
  3. I will accept GitHub pull requests that fix bugs or add features. This sort of maintenance will be done for free.

Thanks

Many thanks to forahobby of www.360-hq.com for testing this script and helping me find the initial bugs and Craig Hopson of twitterrooms.co.uk for help tracking down an iOS email handling bug.

Versions

July 9, 2019

May 21, 2013

April 14, 2012

March 24, 2010


All versions of mailreader with dependencies

PHP Build Version
Package Version
Requires php Version >5.6
forked/mail_mime-decode Version ^1.5.6.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package forked/mailreader contains the following files

Loading the files please wait ....