vladiri/social_insurance_number_validator

There is no license information available for the latest version (v1.0) of this package.

Social insurance number validator for german SIN.

v1.0 2024-02-01 20:47 UTC

This package is not auto-updated.

Last update: 2024-10-11 22:59:41 UTC


README

Validator for social insurance number in Germany

Cloning & Installing Repository

  • Clone repository

    git clone https://github.com/vladi-ri/social-insurance-number-validator.git
    
  • Install package

    composer create-project vladiri/social_insurance_number_validator
    

Usage

1. Generate object of SINValidator - here with example SIN

<?php $validator = new SINValidator("04 260887 M 08 0"); ?>

2. Get SIN from generated object

<?php $sin       = $validator->getSIN(); ?>

3. Call main method of SINValidator

<?php $validator->validateSocialInsuranceNumber($sin)); ?>

Current Release

v1.0

  • Validation of example social insurance number, that is statically written into code.

Future Releases

v1.1

  • Basic Form with input field for social insurance number
  • Validation of SIN with social insurance number from user input