Download the PHP package samlittler/mod-11 without Composer
On this page you can find all versions of the php package samlittler/mod-11. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download samlittler/mod-11
More information about samlittler/mod-11
Files in samlittler/mod-11
Download samlittler/mod-11
More information about samlittler/mod-11
Files in samlittler/mod-11
Vendor samlittler
Package mod-11
Short Description A library for calculating mod 11 checksums as used by Royal Mail and USPS
License
Package mod-11
Short Description A library for calculating mod 11 checksums as used by Royal Mail and USPS
License
Please rate this library. Is it a good library?
Informations about the package mod-11
mod-11
mod-11 is a PSR-2-compliant library for calculating Mod11 checksums as used by the Royal Mail, USPS and others.
Installing
You can easily install this library by running the following command if you're using composer.
composer require samlittler/mod-11
Alternatively, you can download it and manually include it.
Usage
Usage is really simple too.
<?php
use \Mod11\Mod11;
$checksum = Mod11::calculate($test_value, $weights);
Tests
Testing on 4 working strings from different sources. It works :)
Changelist
1.1.1
- Dependency on PHP 7.1 specified. This always existed, but now it's explicit.
1.1.0
- Removed dependency on phpunit. Now only a dev dependency
- Added a .gitignore
- Made PSR-2 compliant
1.0.0
- Initial commit with working tests
All versions of mod-11 with dependencies
PHP Build Version
Package Version
Requires
php Version
~7.1
The package samlittler/mod-11 contains the following files
Loading the files please wait ....