Skip to content

Instantly share code, notes, and snippets.

@joeybab3
Last active August 20, 2019 16:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joeybab3/c70262e8d788d453eff4d0ff8524eda3 to your computer and use it in GitHub Desktop.
Save joeybab3/c70262e8d788d453eff4d0ff8524eda3 to your computer and use it in GitHub Desktop.
Creates a sscc18 barcode
<?php
require_once 'vendor/autoload.php';
$number = 00002347350023848878;
$generator = new Picqer\Barcode\BarcodeGeneratorHTML();
$code = chr(241).$number;
?>
<!DOCTYPE html>
<html>
<body>
<?php echo $generator->getBarcode($code, Picqer\Barcode\BarcodeGeneratorPNG::TYPE_CODE_128_C, 2, 60); ?>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment