GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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.

BranchesTags
Open more actions menu

Latest commit

 

History

7 Commits
7 Commits

Folders and files

NameName
Last commit message
Last commit date
images
images
 
 
Barcode.php
Barcode.php
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 

Repository files navigation

Code 128 generator

PHP barcode generator. Supports 128B (Code Set B):

  • ASCII characters 32 to 127 (0–9, A–Z, a–z);
  • special characters;
  • FNC 1–4.

PHP requirements

  • PHP 7+;
  • GD library.

Example #1: default settings

<?php

require_once 'Barcode.php';

$image = Barcode::make('ABCDEF123456');

imagejpeg($image, 'image.jpg');

defaults

Example #2: custom image height

<?php

require_once 'Barcode.php';

$image = Barcode::make('ABCDEF123456', 80);

imagejpeg($image, 'image.jpg');

defaults

Example #3: scale image width by 2

<?php

require_once 'Barcode.php';

$image = Barcode::make('ABCDEF123456', 40, 2);

imagejpeg($image, 'image.jpg');

defaults

About

Code 128 barcode generator (Code Set B). The simplest implementation in about 200 lines of code.

Topics

barcodebarcode-generatorcodecode-128generatorphp

Resources

Readme
Apache-2.0 license
Activity

Stars

7 stars

Watchers

1 watching

Forks

2 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.