aulinks/mail-extractor

1.0.0 2015-02-12 08:49 UTC

This package is auto-updated.

Last update: 2024-12-06 03:46:07 UTC


README

Build Status

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