vladdesv / php-nin
Verify structure of individual national identification numbers
Installs: 219
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 2
pkg:composer/vladdesv/php-nin
Requires
- php: ^7.2
Requires (Dev)
- phpunit/phpunit: 8.0
This package is auto-updated.
Last update: 2025-10-06 19:33:36 UTC
README
National Identification Numbers
This library validates the structure of individual identification numbers. Currently supporting all Nordic countries.
Supported countries
- Sweden
- Personal identification numbers
- Coordination numbers
- Norway
- Birth numbers
- D-numbers
- H-numbers
- Finland
- Personal identity code
- Iceland
- Identification number
- Denmark
- Personal identification number
Usage
use NIN\NationalIdentificationNumberParser; $nin = NationalIdentificationNumberParser::tryParse('890629-1870', 'SE'); echo $nin; // '890629-1870' echo $nin->getCountryCode(); // 'SE'
Installation
composer require vladdesv/php-nin
License
MIT © Vladimirs Nordholm