All Projects → kreativekorp → Barcode

kreativekorp / Barcode

Licence: mit
barcode.php - Generate barcodes from a single PHP file. MIT license.

Projects that are alternatives of or similar to Barcode

Php Qrcode
A QR Code generator for PHP7.4+
Stars: ✭ 685 (+385.82%)
Mutual labels:  qr-code, qrcode-generator, qrcode
React Qr Svg
React component for rendering SVG QR codes
Stars: ✭ 134 (-4.96%)
Mutual labels:  qr-code, qrcode-generator, qrcode
Czxing
C++ port of ZXing and ZBar for Android.
Stars: ✭ 854 (+505.67%)
Mutual labels:  qrcode-generator, qrcode, barcode
QR Attendance
This project is an attendance system which provides attendance on scanning QR code. The attendance is stored in Excel sheet named with the date of attendance taken. In this folder a file named Generate.py is used to generate the QR code for given input file. Attend.py file is for scanning the QR code
Stars: ✭ 17 (-87.94%)
Mutual labels:  qrcode, qr-code, qrcode-generator
Awesomeqrcode
An awesome QR code generator for Android.
Stars: ✭ 1,718 (+1118.44%)
Mutual labels:  qr-code, qrcode-generator, qrcode
Swiftscan
A barcode and qr code scanner( 二维码/条形码扫描、生成,仿微信、支付宝)
Stars: ✭ 293 (+107.8%)
Mutual labels:  qrcode-generator, qrcode, barcode
Qr Ascii
A small library to generate QR codes with ascii
Stars: ✭ 63 (-55.32%)
Mutual labels:  qr-code, qrcode-generator, qrcode
QRCodeFX
Simple tool to generate/read QR Code and export it.
Stars: ✭ 31 (-78.01%)
Mutual labels:  qrcode, qr-code, qrcode-generator
Qrbtf
An art QR code (qrcode) beautifier. 艺术二维码生成器。https://qrbtf.com
Stars: ✭ 1,391 (+886.52%)
Mutual labels:  qr-code, qrcode-generator, qrcode
Qr Code Scanner
📠 A simple, fast and useful progressive web application
Stars: ✭ 982 (+596.45%)
Mutual labels:  qr-code, qrcode, barcode
barcoder
Lightweight Barcode Encoding Library for .NET Framework, .NET Standard and .NET Core.
Stars: ✭ 76 (-46.1%)
Mutual labels:  barcode, qr-code, qrcode-generator
Qrcode
💮 amazing QRCode generator in Python (supporting animated gif) - Python amazing 二维码生成器(支持 gif 动态图片二维码)
Stars: ✭ 8,613 (+6008.51%)
Mutual labels:  qrcode, qr-code, qrcode-generator
python
Build Python extension with Dynamsoft Barcode Reader.
Stars: ✭ 35 (-75.18%)
Mutual labels:  qrcode, barcode, qr-code
Efqrcode
A better way to operate QR Code in Swift, support iOS, macOS, watchOS and tvOS.
Stars: ✭ 4,121 (+2822.7%)
Mutual labels:  qrcode-generator, qrcode, barcode
nova-qrcode-field
A Laravel Nova field to generate QR Code
Stars: ✭ 28 (-80.14%)
Mutual labels:  qrcode, qr-code, qrcode-generator
Barcode
a barcode creation lib for golang
Stars: ✭ 953 (+575.89%)
Mutual labels:  qrcode-generator, qrcode, barcode
Offline Qr Code
📱 Browser add-on allowing you to quickly generate a QR code offline with the URL of the open tab or other text!
Stars: ✭ 193 (+36.88%)
Mutual labels:  qr-code, qrcode-generator, qrcode
QRCode-Generator-PHP-Class
🚀 QRCode PHP class (library). QR Code Generator using vCard 4.0 and the Google Chart API
Stars: ✭ 91 (-35.46%)
Mutual labels:  qrcode, qr-code, qrcode-generator
Qrcode
QR-code encoder/decoder (no image recognition)
Stars: ✭ 34 (-75.89%)
Mutual labels:  qr-code, qrcode-generator, qrcode
Ngx Kjua
Angular QR-Code generator component using kjua.
Stars: ✭ 51 (-63.83%)
Mutual labels:  qr-code, qrcode-generator, qrcode

barcode.php

Generate barcodes from a single PHP file. MIT license.

  • Output to PNG, GIF, JPEG, or SVG.
  • Generates UPC-A, UPC-E, EAN-13, EAN-8, Code 39, Code 93, Code 128, Codabar, ITF, QR Code, and Data Matrix.

Use from a PHP script:

include 'barcode.php';

$generator = new barcode_generator();

/* Output directly to standard output. */
$generator->output_image($format, $symbology, $data, $options);

/* Create bitmap image. */
$image = $generator->render_image($symbology, $data, $options);
imagepng($image);
imagedestroy($image);

/* Generate SVG markup. */
$svg = $generator->render_svg($symbology, $data, $options);
echo $svg;

Use with GET or POST:

barcode.php?f={format}&s={symbology}&d={data}&{options}

e.g.

barcode.php?f=png&s=upc-e&d=06543217
barcode.php?f=svg&s=qr&d=HELLO%20WORLD&sf=8&ms=r&md=0.8

Options:

f - Format. One of:

    png
    gif
    jpeg
    svg

s - Symbology (type of barcode). One of:

    upc-a          code-39         qr     dmtx
    upc-e          code-39-ascii   qr-l   dmtx-s
    ean-8          code-93         qr-m   dmtx-r
    ean-13         code-93-ascii   qr-q   gs1-dmtx
    ean-13-pad     code-128        qr-h   gs1-dmtx-s
    ean-13-nopad   codabar                gs1-dmtx-r
    ean-128        itf

d - Data. For UPC or EAN, use * for missing digit. For Codabar, use ABCD or ENT* for start and stop characters. For QR, encode in Shift-JIS for kanji mode.

w - Width of image. Overrides sf or sx.

h - Height of image. Overrides sf or sy.

sf - Scale factor. Default is 1 for linear barcodes or 4 for matrix barcodes.

sx - Horizontal scale factor. Overrides sf.

sy - Vertical scale factor. Overrides sf.

p - Padding. Default is 10 for linear barcodes or 0 for matrix barcodes.

pv - Top and bottom padding. Default is value of p.

ph - Left and right padding. Default is value of p.

pt - Top padding. Default is value of pv.

pl - Left padding. Default is value of ph.

pr - Right padding. Default is value of ph.

pb - Bottom padding. Default is value of pv.

bc - Background color in #RRGGBB format.

cs - Color of spaces in #RRGGBB format.

cm - Color of modules in #RRGGBB format.

tc - Text color in #RRGGBB format. Applies to linear barcodes only.

tf - Text font for SVG output. Default is monospace. Applies to linear barcodes only.

ts - Text size. For SVG output, this is in points and the default is 10. For PNG, GIF, or JPEG output, this is the GD library built-in font number from 1 to 5 and the default is 1. Applies to linear barcodes only.

th - Distance from text baseline to bottom of modules. Default is 10. Applies to linear barcodes only.

ms - Module shape. One of: s for square, r for round, or x for X-shaped. Default is s. Applies to matrix barcodes only.

md - Module density. A number between 0 and 1. Default is 1. Applies to matrix barcodes only.

wq - Width of quiet area units. Default is 1. Use 0 to suppress quiet area.

wm - Width of narrow modules and spaces. Default is 1.

ww - Width of wide modules and spaces. Applies to Code 39, Codabar, and ITF only. Default is 3.

wn - Width of narrow space between characters. Applies to Code 39 and Codabar only. Default is 1.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].