Skip to content

Composer Package with SNI (Spanish National Identifier) validators and usable objects

License

Notifications You must be signed in to change notification settings

garciasdos/spanish-national-identifier

Repository files navigation

Spanish National Identifier for PHP

Implementation for SNI (aka DNI) VO.

Usage

Example: Generate new SNI

use SNI\Domain\SNI;

...

$sni = SNI::fromString('84253610X');

Requirements

PHP in 7.4 or higher version.

Installation

Via GitHub

$ git clone git@github.com:garciasdos/spanish-national-identifier.git

Package hosted in Packagist.

Require the latest version of garciasdos/spanish-national-identifier with Composer

$ composer require garciasdos/spanish-national-identifier