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

Commit

Permalink
Merge pull request #1320 from Stoffo/master
Browse files Browse the repository at this point in the history
Add German Email Providers
  • Loading branch information
fzaninotto authored Feb 14, 2018
2 parents f37aba0 + 44e3712 commit 5dce115
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
10 changes: 9 additions & 1 deletion src/Faker/Provider/de_CH/Internet.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@

class Internet extends \Faker\Provider\Internet
{
protected static $freeEmailDomain = array('gmail.com', 'hotmail.com', 'yahoo.com', 'googlemail.com', 'gmx.ch', 'bluewin.ch', 'swissonline.ch');
protected static $freeEmailDomain = array(
'gmail.com',
'hotmail.com',
'yahoo.com',
'googlemail.com',
'gmx.ch',
'bluewin.ch',
'swissonline.ch'
);
protected static $tld = array('com', 'com', 'com', 'net', 'org', 'li', 'ch', 'ch');
}
19 changes: 18 additions & 1 deletion src/Faker/Provider/de_DE/Internet.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,23 @@

class Internet extends \Faker\Provider\Internet
{
protected static $freeEmailDomain = array('web.de', 'gmail.com', 'hotmail.de', 'yahoo.de', 'googlemail.com', 'aol.de', 'gmx.de');
/**
* @link https://www.statista.com/statistics/446418/most-popular-e-mail-providers-germany/
* @link http://blog.shuttlecloud.com/the-10-most-popular-email-providers-in-germany
*/
protected static $freeEmailDomain = array(
'web.de',
'gmail.com',
'hotmail.de',
'yahoo.de',
'googlemail.com',
'aol.de',
'gmx.de',
'freenet.de',
'posteo.de',
'mail.de',
'live.de',
't-online.de'
);
protected static $tld = array('com', 'com', 'com', 'net', 'org', 'de', 'de', 'de');
}

0 comments on commit 5dce115

Please sign in to comment.