Skip to content

NationalId

Pieter Hordijk edited this page Dec 31, 2018 · 1 revision

TOC

Bsn

Validates the input (string) to be a valid Dutch national ID (BSN or Burger Service Nummer int or a string containing only digits).

Version information

Available since: 1.0.0

Usage

<?php declare(strict_types);

use HarmonyIO\Validation\Rule\NationalId\Bsn;

(new Bsn())->validate(393610603);

Failure reasons

  • NationalId.Bsn when the validated value is not an intor a string only containing digits
  • NationalId.Bsn when the validated value is not a valid BSN
Clone this wiki locally