xefi / faker-php-locales-nl-nl
Faker extension to include nl_NL locale
v1.0.1
2026-11-18 10:23 UTC
Requires
- php: ^8.3
- psr/container: ^2.0
- xefi/faker-php: ^1.5.3
Requires (Dev)
- phpunit/phpunit: ^11
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Dutch (Netherlands) (nl_NL) locale for Faker PHP.
Installation
composer require --dev xefi/faker-php-locales-nl-nl
The service provider is discovered automatically through Composer.
Usage
use Xefi\Faker\Faker; $faker = new Faker('nl_NL'); $faker->name(); // "Sanne de Vries" $faker->fullAddress(); // "Kerkstraat 12, 1234 AB Utrecht" $faker->bsn(); // "111222333"
Generators without a nl_NL variant fall back to the default locale.
Locale-specific generators
| Method | Extension | Description |
|---|---|---|
province() / provinceCode() |
Address | The 12 provinces and their codes (NH, ZH, ...) |
postcode() |
Address | 1234 AB postcode, skipping the letter pairs that are not issued |
bsn() |
Person | Burgerservicenummer passing the 11-proef |
companyNumber() |
Company | 8 digits KvK number |
rsin() |
Company | RSIN passing the 11-proef |
vat() |
Company | NL + RSIN + B01 btw-identificatienummer |
iban() |
Financial | NL IBAN with a real bank code |
Contributing
- Fork the repository and create a branch from
main. - Add an extension under
src/Extensions/and register it inFakerNlNlServiceProvider::boot(). - Add a test under
tests/Unit/. - Run the suite with
vendor/bin/phpunit(ordocker compose run php vendor/bin/phpunit). - Open a pull request against
main.
License
MIT