Download the PHP package lucasmichot/unaliaser without Composer
On this page you can find all versions of the php package lucasmichot/unaliaser. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download lucasmichot/unaliaser
More information about lucasmichot/unaliaser
Files in lucasmichot/unaliaser
Package unaliaser
Short Description Track and unalias Google Mail and Google Apps emails.
License MIT
Homepage https://github.com/lucasmichot/unaliaser
Informations about the package unaliaser
Unaliaser
A PHP library to track, de-duplicate and un-alias Google Mail and Google Apps emails.
- Requiring/Loading
- Methods
- __construct()
- cleanEmail()
- domainName()
- isGmail()
- isGoogleApps()
- isGoogle()
- uniqueDomainName()
- userName()
- userAlias()
- hasUserAlias()
- userOrigin()
- userUndottedOrigin()
- unique()
- userIsDotted()
- isUnique()
- Tests
- License
Requiring / Loading
If you're using Composer to manage dependencies, you can include the following
in your composer.json
file:
"require": {
"unaliaser/unaliaser": "dev-master"
}
Then, after running composer update
or php composer.phar update
, you can
load the class using Composer's autoloading:
Otherwise, you can simply require the file directly:
Methods
__construct()
Creates a new instance of Unaliaser
.
If the email is not valid, an InvalidArgumentExcpetion
will be thrown.
cleanEmail()
Returns a clean email.
domainName()
Returns a the domain name for the email.
isGmail()
Check if an email is managed by Google Mail.
isGoogleApps()
Check if an email is managed by Google Apps.
isGoogle()
Check if an email is managed by Google (Gmail or Google Apps).
uniqueDomainName()
Get the unique domain name for a Gmail address.
mxRecords()
Get the MX records for the domain name of an email address.
userName()
Get the username for an email address.
userAlias()
Get the user alias for a Google address, if any.
hasUserAlias()
Determines if a Google email address contains an user alias.
userOrigin()
Get the original username for a email.
userUndottedOrigin()
Get the original un-dotted username for a Google address.
userIsDotted()
Determines if a Google address is dotted.
unique()
Get the unique email address.
isUnique()
Determines if the provided email is unique (dotted or aliased).
Tests
From the project directory, tests can be ran using phpunit
License
Released under the MIT License - see LICENSE.txt
for details.