drupol/belgian-national-number-faker

Belgian national number faker generator using fzaninotto/faker.

Maintainers

👁 drupol

Package info

github.com/drupol/belgian-national-number-faker

pkg:composer/drupol/belgian-national-number-faker

Fund package maintenance!

drupol

Statistics

Installs: 308

Dependents: 0

Suggesters: 0

Stars: 2

Open Issues: 0

1.1.3 2019-12-20 16:14 UTC

Requires

  • php: >= 7.1

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT 25fec1c86c49a860545dc765ccdfaffd62c76ddf

  • Pol Dellaiera <pol.dellaiera.woop@protonmail.com>

fakerbelgian national numbernational numbernational identification number

This package is auto-updated.

Last update: 2026-06-21 07:38:17 UTC


README

👁 Latest Stable Version
👁 GitHub stars
👁 Total Downloads
👁 GitHub Workflow Status
👁 Scrutinizer code quality
👁 Code Coverage
👁 Mutation testing badge
👁 License
👁 Say Thanks!
👁 Donate!

Belgian national number faker

Description

Belgian national number generator using fzaninotto/faker.

Requirements

  • PHP >= 7.1

Installation

composer require --dev drupol/belgian-national-number-faker

Usage

With regular PHP

<?php

declare(strict_types = 1);

include 'vendor/autoload.php';

use drupol\BelgianNationalNumberFaker\Provider\BelgianNationalNumber;
use Faker\Generator;

$faker = new BelgianNationalNumber(new Generator());

echo $faker->belgianNationalIdentificationNumber();

Integration with Symfony

Through nelmio/alice and hautelook/alice-bundle:

Edit the file services.yml and add:

services:
 drupol\BelgianNationalNumberFaker\Provider\BelgianNationalNumber:
 tags: [ { name: nelmio_alice.faker.provider } ]

Code quality, tests and benchmarks

Every time changes are introduced into the library, Github run the tests and the benchmarks.

The library has tests written with PHPSpec. Feel free to check them out in the spec directory. Run composer phpspec to trigger the tests.

Before each commit some inspections are executed with GrumPHP, run ./vendor/bin/grumphp run to check manually.

Contributing

Feel free to contribute to this library by sending Github pull requests. I'm quite reactive :-)