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

Commit

Permalink
README.md - Generates a random NIR number
Browse files Browse the repository at this point in the history
  • Loading branch information
tbordinat committed Dec 17, 2016
1 parent a2aa4d8 commit 12a62fd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
9 changes: 9 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -991,6 +991,15 @@ echo $faker->siren; // 082 250 104
echo $faker->siret; // 347 355 708 00224
```

### `Faker\Provider\fr_FR\Person`

```php
<?php

// Generates a random NIR / Sécurité Sociale number
echo $faker->nir; // 1 88 07 35 127 571 - 19
```

### `Faker\Provider\he_IL\Payment`

```php
Expand Down
4 changes: 2 additions & 2 deletions src/Faker/Provider/fr_FR/Person.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public static function prefix()
}

/**
* Generates a NIR number (13 digits + 2 digits for the key)
* Generates a NIR / Sécurité Sociale number (13 digits + 2 digits for the key)
*
* @see https://fr.wikipedia.org/wiki/Num%C3%A9ro_de_s%C3%A9curit%C3%A9_sociale_en_France
* @return string
Expand Down Expand Up @@ -102,7 +102,7 @@ public function nir($gender = null, $formatted = false)
$nir .= $this->numerify('##');
}

// Born number (dependending of town and month of birth)
// Born number (depending of town and month of birth)
$nir .= $this->numerify('###');

/**
Expand Down

0 comments on commit 12a62fd

Please sign in to comment.