Skip to content

Swedish, publishable and GDPR safe number series #78

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

Merged
merged 3 commits into from
Dec 15, 2022
Merged
Changes from 1 commit
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
16 changes: 16 additions & 0 deletions docs/locales/sv_SE.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,19 @@ echo $faker->mobileNumber(); // "07########"
echo $faker->mobileNumber(); // "07## ## ## ##"
echo $faker->mobileNumber(); // "07## ### ###"
```

### Publishable and GDPR safe number series
The [Swedish Post and Telecom Authority (PTS) have reserved number series](https://www.pts.se/sv/bransch/telefoni/nummer-och-adressering/telefonnummer-for-anvandning-i-bocker-och-filmer-etc/) that are safe to use in relation to European GDPR laws.
<br>The numbers will never be used by any subscriber wich also makes them safe to publish in books, movies, TV series etc.

```php
//Publishable Swedish mobile phone number series
echo '070-1740' . $faker->faker->numberBetween(605, 699);

//Publishable Swedish landline phone number series
echo '031-3900' . $faker->numberBetween(600, 699);
echo '040-6280' . $faker->numberBetween(400, 499);
echo '08-46500' . $faker->numberBetween(400, 499);
echo '0980-319' . $faker->numberBetween(200, 299);
```