Download the PHP package fvzsf65536/fetch without Composer
On this page you can find all versions of the php package fvzsf65536/fetch. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download fvzsf65536/fetch
More information about fvzsf65536/fetch
Files in fvzsf65536/fetch
Package fetch
Short Description A PHP IMAP Library
License BSD-3-Clause
Homepage http://github.com/tedious/Fetch
Informations about the package fetch
Fetch 
Fetch is a library for reading email and attachments, primarily using the POP and IMAP protocols.
Installing
N.b. A note on Ubuntu 14.04 (probably other Debian-based / Apt managed systems), the install of php5-imap does not enable the extension for CLI (possibly others as well), which can cause composer to report fetch requires ext-imap
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.
Pear
Fetch is also available through Pear.
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.
All versions of fetch with dependencies
ext-imap Version *