承接 samlittler/mod-11 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

samlittler/mod-11

最新稳定版本:v1.1.1

Composer 安装命令:

composer require samlittler/mod-11

包简介

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

README 文档

README

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

统计信息

  • 总下载量: 670
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2016-11-29