xefi / faker-php-locales-nl-be
Faker extension to include nl_BE 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 (Belgium) (nl_BE) locale for Faker PHP.
Installation
composer require --dev xefi/faker-php-locales-nl-be
The service provider is discovered automatically through Composer.
Usage
use Xefi\Faker\Faker; $faker = new Faker('nl_BE'); $faker->name(); // "Lotte Peeters" $faker->fullAddress(); // "Stationsstraat 12, 9000 Gent" $faker->rrn(); // "85073003328"
Generators without a nl_BE variant fall back to the default locale.
Locale-specific generators
Data covers Flanders and Brussels.
| Method | Extension | Description |
|---|---|---|
region() / province() |
Address | Flemish and Brussels regions, the 5 Flemish provinces |
postcode() |
Address | 4 digits postcode within the Brussels and Flemish ranges |
rrn(?string $gender, bool $formatted) |
Person | Rijksregisternummer with its modulo 97 check digits |
companyNumber() |
Company | Ondernemingsnummer with its modulo 97 check digits |
vat() |
Company | BE + ondernemingsnummer |
iban() |
Financial | BE IBAN with a valid national modulo 97 check |
Contributing
- Fork the repository and create a branch from
main. - Add an extension under
src/Extensions/and register it inFakerNlBeServiceProvider::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