Skip to content

Latest commit

 

History

History
36 lines (22 loc) · 770 Bytes

README.md

File metadata and controls

36 lines (22 loc) · 770 Bytes

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