luisalberto/checkdigit-algorithms

Check Digit Algorithms

1.0.0 2021-10-01 05:53 UTC

This package is auto-updated.

Last update: 2024-04-29 04:48:08 UTC


README

Build Status

Algorithms:

  • Damm algorithm
  • Luhn algorithm
  • Verhoeff algorithm

Requirements

  • PHP version 5.6 or greater

Install

composer require luisalberto/checkdigit-algorithms

Usage

<?php

require_once(dirname( __FILE__ ) . '/vendor/autoload.php');

$luhn = new \LuisAlberto\CheckDigit\LuhnCheckDigit();
$luhn->isValid("48721484");

License

Copyright 2021 Luis A. Ochoa

See LICENSE for the full license text.