Simple and standalone barcode generator for PHP. Supports 128B (Code Set B):
- ASCII characters 32 to 127 (0–9, A–Z, a–z);
- special characters;
- FNC 1–4.
- PHP 5.4+;
- GD library.
<?php
require_once 'barcode.php';
$image = barcode::image('ABCDEF123456');
imagejpeg($image, 'image.jpg');
<?php
require_once 'barcode.php';
$image = barcode::image('ABCDEF123456', 80);
imagejpeg($image, 'image.jpg');
<?php
require_once 'barcode.php';
$image = barcode::image('ABCDEF123456', 40, 2);
imagejpeg($image, 'image.jpg');