rnv619 / barcode
Barcode Generator
Installs: 17
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/rnv619/barcode
This package is not auto-updated.
Last update: 2025-10-12 11:37:10 UTC
README
This script generates barcodes in four barcode formats including Code 128, Code 39, Code 2of5, and Codabar, you have options for generating as “vertical” or “horizontal” display, varying barcode heights and one of four barcode formats. It does require the GD Library to be installed as a module in PHP.
Installation
$ php composer.phar require rnv619/barcode "@dev"
or add
"rnv619/barcode": "@dev"
How to Use
- Create Object of rnv619\barcode\GenerateBarcode class
- Provice required inputs
- Done
Example:
require 'vendor/autoload.php';
$gen = new \rnv619\barcode\GenerateBarcode("Code39", "20", "Rahul Ranva", true, "horizontal");
$result = $gen->getCode();
echo "<img alt='testing' src='".$result."'/>";
Supported Barcode Types
- code128
- code128b
- code128a
- code39
- code25
- codabar