Skip to content

Commit

Permalink
Swedish, publishable and GDPR safe number series (#78)
Browse files Browse the repository at this point in the history
* Swedish, publishable and GDPR safe number series

@see https://www.pts.se/sv/bransch/telefoni/nummer-och-adressering/telefonnummer-for-anvandning-i-bocker-och-filmer-etc/

(Unable to find an English translation)

* Update docs/locales/sv_SE.md

* Update docs/locales/sv_SE.md

Co-authored-by: Bram <[email protected]>
  • Loading branch information
tanthammar and bram-pkg committed Dec 15, 2022
1 parent d0684a5 commit 18d4a3c
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions docs/locales/sv_SE.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,20 @@ 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) has reserved a series of numbers](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);
```

0 comments on commit 18d4a3c

Please sign in to comment.