SSCC-18

SSCC-18 barcode in PHP: 18 digit serial shipping container code, check digit, code example and SVG output

An SSCC identifies one logistic unit, a pallet or a carton, uniquely and for as long as it exists. The symbol is a GS1-128 carrying Application Identifier 00, and this type takes the plain digits and builds the element string for you.

Type Token

ItemValue
Type tokenSSCC18
Enum caseBarcodeType::SSCC18
FamilyLinear
StandardGS1 General Specifications
Class\Com\Tecnick\Barcode\Type\Linear\SsccOneEight

Input

ItemValue
Character setdigits
Length17 digits, or 18 with a valid check digit
Checkmodulo 10, appended when the payload is 17 digits and verified when it is 18
Extra parametersnone

Examples

A serial shipping container code

<?php

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

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

echo $bobj->getInlineSvgCode();

SSCC-18 barcode encoding 39501101020917171

Errors

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

PayloadMessage
3950110102091717AInput code must be a number

See Also