Coder Social home page Coder Social logo

egulias / isemail Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dominicsayers/isemail

6.0 6.0 0.0 359 KB

[WIP] Creating an email validator from the original http://www.dominicsayers.com/isemail/ to a more OOP aproach. See https://github.com/symfony/symfony/issues/1581

Home Page: https://github.com/egulias/isemail

PHP 100.00%

isemail's People

Contributors

dominicsayers avatar egulias avatar ricardclau avatar stloyd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

isemail's Issues

Error Constants

Every time an invalid character is found at any part of the email an exception is thrown. Currently the message in the exception is a port from the old is_email error constants names, but they should be ported to constants of the EmailParser or translated by the EmailValidator.

[Tests] - TLD emails

Tests (and parsing, which is currently commented) for valid and invalid TLD domain in emails.

Warning Constans

There are a lot of warnings all of them into class constants of EmailParser. Some of them have a value used for comparison (like RFC5322_LOCAL_TOOLONG), but most of them don't.
So the idea is to standardize the values of all of the constants maintaining the values for those used for comparisons.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.