Belgian national number generator using fzaninotto/faker.
- PHP >= 7.1
composer require --dev drupol/belgian-national-number-faker
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();
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 } ]
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.
Feel free to contribute to this library by sending Github pull requests. I'm quite reactive :-)