Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

does someone use this on laravel #157

Closed
andreaontheweb opened this issue Apr 17, 2018 · 2 comments
Closed

does someone use this on laravel #157

andreaontheweb opened this issue Apr 17, 2018 · 2 comments

Comments

@andreaontheweb
Copy link

Hello i need some help, on ho implement this wonderful repository on laravel.
I tried with php script on the help but it return me errors.
Thank's

@mipapo
Copy link
Contributor

mipapo commented Apr 17, 2018

What kind of error?
Be aware that there is a missing semicolon in the Readme

function is_disposable_email($email) {
  $path = realpath(dirname(__FILE__)) . '/disposable_email_blacklist.conf';
  $mail_domains_ko = file($path, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
  $mail_domains_ko = array_fill_keys($mail_domains_ko, true);
  $domain = mb_strtolower(explode('@', trim($email))[1]);
  return (isset($mail_domains_ko[$domain]) || array_key_exists($domain, $mail_domains_ko));
}

@andreaontheweb
Copy link
Author

whoops.
With your code it works.
It was just a typo.
Thank's

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants