mcmatters / google-email-address
dev-master
2022-04-21 00:13 UTC
Requires
- php: >=7.3
Requires (Dev)
- phpunit/phpunit: ^9.3
This package is auto-updated.
Last update: 2024-10-21 05:41:45 UTC
README
Helps you to identify is belong email to Google Mail Service or GSuite.
Installation
composer require mcmatters/google-email-address
Usage
<?php declare(strict_types = 1); use McMatters\GoogleEmailAddress\GoogleEmailAddress; require 'vendor/autoload.php'; $manager = new GoogleEmailAddress(); $manager->isGoogleEmailAddress('dima.matters@gmail.com'); // returns "true" $manager->isGSuiteEmailAddress('d.borzyonok@amgrade.org'); // returns "true" $manager->normalize('dima.matters@gmail.com'); // returns "dimamatters@gmail.com"