Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
Checking mergeability… Don't worry, you can still create the pull request.
  • 2 commits
  • 1 file changed
  • 0 commit comments
  • 2 contributors
Showing with 31 additions and 1 deletion.
  1. +31 −1
@@ -8,4 +8,34 @@ Fetch was part of a large project, Mortar, which is hosted on Google Code. It is
currently being migrated over to Github, as well as being updated to support
modern php features. While the project is in flux I encourage you to try it out,
but be careful about using it in a production environment without proper
+The most easy way to install the library is via composer. To do so, you have to do
+the following:
+ php composer.phar require tedivm/fetch
+Composer will then ask you which version you want to install. Until there are stable
+versions, by using "@dev" it'll install the latest version.
+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.
+ require 'autoload.php';
+ $server = new \Fetch\Server('', 993);
+ $server->setAuthentication('dummy', 'dummy');
+ $messages = $server->getMessages();
+ /** @var $message \Fetch\Message */
+ foreach ($messages as $message) {
+ echo "Subject: {$message->getSubject()}\nBody: {$message->getMessageBody()}\n";
+ }

No commit comments for this range

Something went wrong with that request. Please try again.