This is small package for generating UPU S10 check digits. While attempting to automatically generate labels for Deutsche Post, I discovered that they are using a UPU S10 check digit in the tracking code, and thus this library was born.
Composer is the recommended way to install this package:
composer require otherjustin/upus10checkdigit
This is fairly easy to use:
$checkdigit = CheckDigit::generateCheckDigit(12345678);This package is published under MIT license, which can be found in LICENSE.txt.