Skip to content

aochoae/checkdigit-algorithms-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Check digit algorithms

CircleCI

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, 2024 Luis A. Ochoa

See LICENSE for the full license text.

About

Damm, Luhn and Verhoeff algorithms

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages