pep / gmail-stripper
This package is abandoned and no longer maintained.
No replacement package was suggested.
0.1.2
2014-10-23 09:53 UTC
Requires (Dev)
- phpunit/phpunit: 4.3.*
This package is not auto-updated.
Last update: 2021-05-24 15:52:04 UTC
README
Ever needed a check on your database to prevent all those scumbags from opting in 1000 times with fake and weird email addresses.
Now is the time to stop that, with this small plugin all gmail hacks will be history.
To install:
composer require pep/gmail-stripper
Usage:
GmailStripper::strip('p.ep@gmail.com'); // pep@gmail.com
GmailStripper::strip('pep@gmail.com'); // pep@gmail.com
GmailStripper::strip('p.e.p@gmail.com'); // pep@gmail.com
GmailStripper::strip('p.ep+teststest@gmail.com'); // pep@gmail.com
GmailStripper::strip('pep+teststest@gmail.com'); // pep@gmail.com
GmailStripper::strip('p.e.p+teststest@gmail.com'); // pep@gmail.com
GmailStripper::strip('p.ep+teststest+sdaasddsa@gmail.com'); // pep@gmail.com
GmailStripper::strip('pep+teststest+sdaasddsa@gmail.com'); // pep@gmail.com
GmailStripper::strip('p.e.p+teststest+sdaasddsa@gmail.com'); // pep@gmail.com
Or add custom domains:
GmailStripper::strip('pep@customdomain.com', ['customdomain']); // pep@customdomain.com