-
Nicola Asuni Standard 2 of 5 with a modulo 10 check digit computed over the payload and appended before encoding.
Type Token
| Item | Value |
|---|
| Type token | S25+ |
| Enum case | BarcodeType::S25Plus |
| Family | Linear |
| Class | \Com\Tecnick\Barcode\Type\Linear\StandardTwoOfFiveCheck |
| Item | Value |
|---|
| Character set | digits |
| Length | 1 to 30000 characters |
| Check | modulo 10, 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: 'S25+',
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 |
|---|
12A | Invalid character: 65 |
See Also