1
0
mirror of https://github.com/fzaninotto/Faker.git synced 2025-03-19 06:49:50 +01:00

Update README

This commit is contained in:
Geoffrey Brier 2012-08-13 09:30:06 +02:00
parent 8827d8f0ef
commit 560eeb8767

View File

@ -514,6 +514,44 @@ Fugiat non in itaque sunt nobis totam. Sed nesciunt est deleniti cumque alias. R
</contacts>
```
## Language specific formatters
### `Faker\Provider\fr_FR\Company`
```php
<?php
// Generates a random SIREN number
echo $faker->siren; // 082 250 104
// Generates a random SIRET number
echo $faker->siret; // 347 355 708 00224
// Generates a random SIRET number (controlling the number of sequential digits)
echo $faker->siret(3); // 438 472 611 01513
```
### `Faker\Provider\fr_FR\Address`
```php
<?php
// Generates a random department name
echo $faker->departmentName; // "Haut-Rhin"
// Generates a random department number
echo $faker->departmentNumber; // "2B"
// Generates a random department info (department number => department name)
$faker->department; // array('18' => 'Cher');
// Generates a random region
echo $faker->region; // "Saint-Pierre-et-Miquelon"
```
## License
Faker is released under the MIT Licence. See the bundled LICENSE file for details.