-
Nicola Asuni MSI with a modulo 11 check digit appended. A payload whose check works out to 10 has no single character to write it in, and is rejected.
Type Token
| Item | Value |
|---|
| Type token | MSI+ |
| Enum case | BarcodeType::MSIPlus |
| Family | Linear |
| Class | \Com\Tecnick\Barcode\Type\Linear\MsiCheck |
| Item | Value |
|---|
| Character set | 0-9 and A-F |
| Length | 1 to 30000 characters |
| Check | modulo 11, appended by the library |
| Extra parameters | none |
Examples
Ten digits and the appended check
<?php
require_once __DIR__ . '/vendor/autoload.php';
$barcode = new \Com\Tecnick\Barcode\Barcode();
$bobj = $barcode->getBarcodeObj(
type: 'MSI+',
code: '0123456789',
width: -3,
height: -30,
color: 'black',
padding: [0, 0, 0, 0],
)->setBackgroundColor('white');
echo $bobj->getInlineSvgCode();

Errors
These payloads raise \Com\Tecnick\Barcode\Exception:
| Payload | Message |
|---|
GHI | Invalid character: 71 |
See Also