aulinks / mail-extractor
Mail extractor
1.0.0
2015-02-12 08:49 UTC
Requires
- carrooi/doc-extractor: ~1.0
- carrooi/docx-extractor: ~1.0
- carrooi/pdf-extractor: ~1.0
- nette/finder: ~2.2
- symfony/console: ~2.6
Requires (Dev)
- nette/tester: ~1.3.0
This package is auto-updated.
Last update: 2024-09-06 03:19:57 UTC
README
Mail extractor from raw text, pdf, doc, docx and txt files.
Depends on pdftotext and antiword.
Installation
$ composer require aulinks/mail-extractor
$ composer update
Usage
use Aulinks\MailExtractor\MailExtractor; $extractor = new MailExtractor;
Extract mails from text:
$mails = $extractor->extractMails('Contact me on lorem@ipsum.com');
Extract mails from file:
$mails = $extractor->extractMailsFromFile('/path/to/file.pdf');
Extract mails from directory:
$mails = $extractor->extractMailsFromDirectory('/path/to/directory');
Changelog
- 1.0.0
- Initial version