Skip to content
This repository has been archived by the owner on May 11, 2021. It is now read-only.

PepijnSenders/GmailStripper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GmailStripper

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