An IMAP library for PHP
Go to file
2014-01-20 15:37:47 -08:00
src/Fetch Changed exception type 2013-12-18 16:16:20 -08:00
tests Updated Fetch to use the DovecotTesting repository 2014-01-19 00:51:55 -08:00
.gitignore Initial Vagrant setup 2013-12-01 15:53:05 -08:00
.travis.yml Updated vendor path used by travis for the SetupEnvironment script 2014-01-19 00:54:07 -08:00
autoload.php Updated autoloader to support test cases, and bootstrapper to support composer autoloader 2013-12-04 23:34:08 -08:00
composer.json Telling composer to use any of the 1.x line of the Dovecot Test Package 2014-01-20 15:37:47 -08:00
LICENSE Added License 2012-06-10 17:54:41 -07:00
package.xml Changes from beta to alpha 2012-11-25 23:22:05 -08:00
phpunit.xml.dist Updated code coverage to only include Fetch code 2013-12-05 18:01:02 -08:00
README.md Update README.md 2014-01-14 00:32:45 -08:00

Fetch Build Status

Latest Stable Version Total Downloads

Fetch is a library for reading email and attachments, primarily using the POP and IMAP protocols.

Installing

Composer

Installing Fetch can be done through a variety of methods, although Composer is recommended.

Until Fetch reaches a stable API with version 1.0 it is recommended that you review changes before even Minor updates, although bug fixes will always be backwards compatible.

"require": {
  "tedivm/fetch": "0.5.*"
}

Pear

Fetch is also available through Pear.

$ pear channel-discover pear.tedivm.com
$ pear install tedivm/Fetch

Github

Releases of Fetch are available on Github.

Sample Usage

This is just a simple code to show how to access messages by using Fetch. It uses Fetch own autoload, but it can (and should be, if applicable) replaced with the one generated by composer.

$server = new \Fetch\Server('imap.example.com', 993);
$server->setAuthentication('dummy', 'dummy');


$messages = $server->getMessages();
/** @var $message \Fetch\Message */
foreach ($messages as $message) {
    echo "Subject: {$message->getSubject()}\nBody: {$message->getMessageBody()}\n";
}

License

Fetch is licensed under the BSD License. See the LICENSE file for details.