2017 © Pedro Peláez
 

library mod-11

A library for calculating mod 11 checksums as used by Royal Mail and USPS

image

samlittler/mod-11

A library for calculating mod 11 checksums as used by Royal Mail and USPS

  • Tuesday, August 15, 2017
  • by samlittler
  • Repository
  • 1 Watchers
  • 0 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 17 % Grown

The README.md

mod-11

mod-11 is a PSR-2-compliant library for calculating Mod11 checksums as used by the Royal Mail, USPS and others., (*1)

Installing

You can easily install this library by running the following command if you're using composer., (*2)

composer require samlittler/mod-11

Alternatively, you can download it and manually include it., (*3)

Usage

Usage is really simple too., (*4)

<?php

use \Mod11\Mod11;

$checksum = Mod11::calculate($test_value, $weights);

Tests

Testing on 4 working strings from different sources. It works :), (*5)

Changelist

1.1.1 - Dependency on PHP 7.1 specified. This always existed, but now it's explicit., (*6)

1.1.0 - Removed dependency on phpunit. Now only a dev dependency - Added a .gitignore - Made PSR-2 compliant, (*7)

1.0.0 - Initial commit with working tests, (*8)

The Versions

15/08 2017

dev-master

9999999-dev

A library for calculating mod 11 checksums as used by Royal Mail and USPS

  Sources   Download

The Development Requires

by Avatar samlittler

15/08 2017

v1.1.0

1.1.0.0

A library for calculating mod 11 checksums as used by Royal Mail and USPS

  Sources   Download

The Development Requires

by Avatar samlittler

17/11 2016

v1.0.0

1.0.0.0

A library for calculating mod 11 checksums

  Sources   Download

by Avatar samlittler