samlittler/luhn-mod-16

A PHP library for calculating Luhn Mod 16 checksums as used by Royal Mail and others

v2.0.0 2022-05-25 09:47 UTC

This package is auto-updated.

Last update: 2024-05-25 14:10:30 UTC


README

A library for calculating Luhn Mod 16 checksums in PHP. Especially useful for those dealing with Royal Mail labels.

Installation

Download with composer by using:

composer require samlittler/luhn-mod-16

Usage

Usage is simple.

$checksum = \LuhnMod16\LuhnMod16::calculate($your_test_value);