plancake/official-library-php-email-parser — pull request #13 by tolgamorf (2013-03-12 04:19:19+00:00)
Title: Update PlancakeEmailParser.php

Added three new functions: `getFrom()`, `getFromName()` and `getFromAddress()`
They can be used to return the sender's display name and e-mail address.

Example:
```
$emailParser = new PlancakeEmailParser($email);

$emailFrom = $emailParser->getFrom();
$emailFromName = $emailParser->getFromName();
$emailFromAddress = $emailParser->getFromAddress();
```

Output:
`$emailFrom`: `"John Doe" `
`$emailFromName`: `John Doe`
`$emailFromAddress`: `john.doe@foo.com`