PHP code example of donchev / email-extractor
1. Go to this page and download the library: Download donchev/email-extractor library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
donchev / email-extractor example snippets
actor = new EmailExtractor();
$content = file_get_contents("email.eml");
$emails = $extractor
->extract($content)
->export();
r = ['@gmail.com', 'allen']
$content = ["[email protected], [email protected], [email protected]", "[email protected]"];
$extractor = new EmailExtractor($filter);
$emails = $extractor
->extractAll($content)
->filterInclude()
->lower()
->unique()
->sortDesc()
->export();