PHPackages                             sunaoka/damm - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. sunaoka/damm

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

sunaoka/damm
============

A PHP library that calculates and verifies the check digit using the Damm algorithm.

v1.2.0(7mo ago)2354MITPHPPHP ^7.2 || ^8.0CI passing

Since Oct 22Pushed 7mo ago1 watchersCompare

[ Source](https://github.com/sunaoka/damm)[ Packagist](https://packagist.org/packages/sunaoka/damm)[ RSS](/packages/sunaoka-damm/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelogDependencies (2)Versions (6)Used By (0)

Damm algorithm for PHP
======================

[](#damm-algorithm-for-php)

[![Latest](https://camo.githubusercontent.com/0bc3480a86a73e2d9fe31626dc999480f048a99bd36214e17d0cead81fb113ee/68747470733a2f2f706f7365722e707567782e6f72672f73756e616f6b612f64616d6d2f76)](https://packagist.org/packages/sunaoka/damm)[![License](https://camo.githubusercontent.com/08b474bb4557734c74cc99524d849d9f0a587d41945557bef7c20f5d988e0816/68747470733a2f2f706f7365722e707567782e6f72672f73756e616f6b612f64616d6d2f6c6963656e7365)](https://packagist.org/packages/sunaoka/damm)[![PHP](https://camo.githubusercontent.com/da13ea0396095d031176a76120e82ad98acee7dc8f3898c3b868a783ce96da04/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f73756e616f6b612f64616d6d)](composer.json)[![Test](https://github.com/sunaoka/damm/actions/workflows/test.yml/badge.svg)](https://github.com/sunaoka/damm/actions/workflows/test.yml)[![codecov](https://camo.githubusercontent.com/53ef168af597b8c73dab4c8a103f095f34ffb2da36e248c23bcf6a038abd5fd8/68747470733a2f2f636f6465636f762e696f2f67682f73756e616f6b612f64616d6d2f6272616e63682f646576656c6f702f67726170682f62616467652e737667)](https://codecov.io/gh/sunaoka/damm)

---

A PHP library that calculates and verifies the check digit using the [Damm algorithm](https://en.wikipedia.org/wiki/Damm_algorithm).

Quasigroups are supported from order 3 to order 64 as well as order 10.

Installation
------------

[](#installation)

```
composer require sunaoka/damm
```

Usage
-----

[](#usage)

### Quasigroup of order 10 (default)

[](#quasigroup-of-order-10-default)

```
