Skip to content

added Polish license plates #13

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 1 commit into from
Nov 27, 2020
Merged
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
18 changes: 18 additions & 0 deletions docs/locales/pl_PL.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,21 @@ echo $faker->bank; // "Narodowy Bank Polski"
// Generates a random bank account number
echo $faker->bankAccountNumber; // "PL14968907563953822118075816"
```

### `Faker\Provider\pl_PL\LicensePlate`
```php
<?php
// Generates a random Polish civil vehicle registration number
echo $faker->licensePlate; // "SO 4429E"
echo $faker->licensePlate(false); // "BKL YP21"
// Generates a random Polish vehicle registration number including civil, army and services plates
echo $faker->licensePlate(true); // "CBY 0874H", "HPF N2LV"
// Generates a random Polish vehicle registration number for specific voivodeships
echo $faker->licensePlate(false, ['zachodniopomorskie', 'świętokrzyskie']); // "ZGY 35807"
// Generates a random Polish vehicle registration number for specific counties
echo $faker->licensePlate(false, ['warmińsko-mazurskie'], ['nidzicki', 'olecki']); // "NOE 35807"
// Generates a random Polish license plate of Border Service or Police
echo $faker->licensePlate(true, ['services'], ['Straż Graniczna', 'Policja']); // "UG 822PC"
// Generates a random Polish army license plate
echo $faker->licensePlate(true, ['army']); // "UG 822PC"
```