Download the PHP package yarri/email-address-recognizer without Composer
On this page you can find all versions of the php package yarri/email-address-recognizer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download yarri/email-address-recognizer
More information about yarri/email-address-recognizer
Files in yarri/email-address-recognizer
Download yarri/email-address-recognizer
More information about yarri/email-address-recognizer
Files in yarri/email-address-recognizer
Vendor yarri
Package email-address-recognizer
Short Description Parses email addresses from a string
License MIT
Homepage https://github.com/yarri/EmailAddressRecognizer
Package email-address-recognizer
Short Description Parses email addresses from a string
License MIT
Homepage https://github.com/yarri/EmailAddressRecognizer
Please rate this library. Is it a good library?
Informations about the package email-address-recognizer
EmailAddressRecognizer
Parses email addresses from the To: or Cc: header in a message.
Usage
$ear = new Yarri\EmailAddressRecognizer("[email protected], Samatha Doe <[email protected]>");
$addresses = $ear->toArray();
sizeof($addresses); // how many addresses are there?
$ear->isValid(); // are all the addresses valid or not?
$addresses[0]->isValid(); // true
echo $addresses[0]->getAddress(); // "[email protected]"
echo $addresses[0]->getName(); // ""
echo $addresses[0]->getFullAddress(); // "[email protected]"
echo $addresses[0]->getDomain(); // "doe.com"
echo $addresses[0]->getGroup(); // ""
$addresses[1]->isValid(); // true
echo $addresses[1]->getAddress(); // "[email protected]"
echo $addresses[1]->getName(); // "Samatha Doe"
echo $addresses[1]->getFullAddress(); // "Samatha Doe <[email protected]>"
echo $addresses[1]->getDomain(); // "doe.com"
echo $addresses[1]->getGroup(); // ""
Installation
Just use the Composer:
composer require yarri/email-address-recognizer
Testing
Install required dependencies for development:
composer update --dev
Run tests:
cd test
../vendor/bin/run_unit_tests
License
EmailAddressRecognizer is free software distributed under the terms of the MIT license
All versions of email-address-recognizer with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.6.0
atk14/forms Version ~1.0 >=1.0.1
atk14/translate Version ^1.2
atk14/dictionary Version 1.*
atk14/forms Version ~1.0 >=1.0.1
atk14/translate Version ^1.2
atk14/dictionary Version 1.*
The package yarri/email-address-recognizer contains the following files
Loading the files please wait ....