GeezerVison is showing github.com — GitHub - LagodichYuriy/code-128: Code 128 barcode generator (Code Set B). The simplest implementation in about 200 lines of code.
Folders and files
| Name | Name | Last commit message | Last commit date |
|---|
| | | |
| | | |
| | | |
| | | |
|
Repository files navigation
PHP barcode generator. Supports 128B (Code Set B):
- ASCII characters 32 to 127 (0–9, A–Z, a–z);
- special characters;
- FNC 1–4.
Example #1: default settings
<?php
require_once 'Barcode.php';
$image = Barcode::make('ABCDEF123456');
imagejpeg($image, 'image.jpg');

Example #2: custom image height
<?php
require_once 'Barcode.php';
$image = Barcode::make('ABCDEF123456', 80);
imagejpeg($image, 'image.jpg');

Example #3: scale image width by 2
<?php
require_once 'Barcode.php';
$image = Barcode::make('ABCDEF123456', 40, 2);
imagejpeg($image, 'image.jpg');

About
Code 128 barcode generator (Code Set B). The simplest implementation in about 200 lines of code.
Topics
Resources
Stars
7 stars
Watchers
1 watching
Forks