KIX

KIX Klant index barcode in PHP: input range, code example and SVG output

The Dutch customer index uses the same four bar states as the Royal Mail code, without the start pattern, the stop pattern or the check character. The sender prepares the delivery point string; PostNL defines what goes in it.

Type Token

ItemValue
Type tokenKIX
Enum caseBarcodeType::KIX
FamilyPostal
Class\Com\Tecnick\Barcode\Type\Linear\KlantIndex

Input

ItemValue
Character set0-9 and A-Z
Length1 to 30000 characters
Checknone
Extra parametersnone

Examples

A delivery point

<?php

require_once __DIR__ . '/vendor/autoload.php';

$barcode = new \Com\Tecnick\Barcode\Barcode();
$bobj = $barcode->getBarcodeObj(
    type: 'KIX',
    code: '1231FZ13XHS',
    width: -3,
    height: -30,
    color: 'black',
    padding: [0, 0, 0, 0],
)->setBackgroundColor('white');

echo $bobj->getInlineSvgCode();

KIX barcode encoding 1231FZ13XHS

Errors

These payloads raise \Com\Tecnick\Barcode\Exception:

PayloadMessage
012345678!Invalid character: 33

See Also