carlof/emailreaper

A single-class PHP library to extract emails from webpage or plain text file

Maintainers

Package info

github.com/Carlo-F/EmailReaper

pkg:composer/carlof/emailreaper

Statistics

Installs: 1

Dependents: 0

Suggesters: 0

Stars: 2

Open Issues: 0

dev-master 2020-05-04 07:49 UTC

This package is auto-updated.

Last update: 2026-03-04 20:24:17 UTC


README

A single-class PHP library to extract emails from webpage or plain text file.

HOW TO USE IT

copy & paste the following code

require_once "emailReaper.php";

$url = 'url-to-search-for-emails'; // url or the path to the file

$reaper = new carloF\EmailReaper($url);

PUBLIC METHODS

$reaper->getEmails() - return an array of found emails.

$reaper->printEmails() - echoes a list of found emails.

$reaper->exportEmails($destFile) - save the list in a file ($destFile)