idnumbers
    Preparing search index...

    The PhilSys Number of Philippines. This page is generated from the registry metadata of the library.

    Property Value
    Country code PHL, PH
    ID type PhilSys Number
    Official name PhilSys Number (PSN)
    Also known as PhilSys Number; PSN; Philippine National ID
    Display format XXXX-XXXXXXX-X
    Input masks ####-#######-#
    Length 12
    Example 123456789012
    Checksum no
    Checksum algorithm None (format/length only)
    Parsable no

    The root entry registers every country:

    import { validateNationalId } from 'idnumbers';

    validateNationalId('PHL', '123456789012').isValid; // true

    To bundle only this country, import its definition from idnumbers/countries/phl and pass it to register():

    import { register, validateNationalId } from 'idnumbers/core';
    import { country } from 'idnumbers/countries/phl';

    register(country);
    validateNationalId('PHL', '123456789012').isValid; // true