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

Add German Email Providers #1320

Merged
merged 4 commits into from
Feb 14, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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');
}