imliam / php-unique-gmail-address

A package to ensure that a Gmail address is unique
MIT License
68 stars 4 forks source link

WIP: Refactor to individual rules #4

Open imliam opened 3 years ago

imliam commented 3 years ago

Refactors the code to use a rule-based approach where every rule is its own class that can do two things to the current email address; normalize it, and build a  regex it.

This is currently just a first pass based on the discussion in #1

szepeviktor commented 3 years ago

@imliam This is my first take on the matter: https://github.com/szepeviktor/unique-email-address Includes a Gmail class for you.