New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

adamgaskins/barcoder

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

adamgaskins/barcoder

A classy package to generate SVG barcodes for the web.

Source
Packagist
Version
v0.1.0
Version published
Total downloads
6.2K
Maintainers
1
Created
Source

A classy package to generate barcodes in Laravel.

Latest Version on Packagist GitHub Tests Action Status Total Downloads

Installation

You can install the package via composer:

composer require adamgaskins/barcoder

Usage

See below for a full list of supported barcode types.

QR Code

Barcoder::qrcode('data to encode')->toSvg();

Datamatrix

Barcoder::datamatrix('data to encode')->toSvg();

Code 128

Barcoder::code128('data to encode')->toSvg();

Barcoder::code128('data to encode')->hideLabel()->toSvg();

EAN-8

Barcoder::ean8('12345678')->toSvg();

Barcoder::ean8('12345678')->hideLabel()->toSvg();

// check digit will automatically be calculated
Barcoder::ean8('1234567*')->toSvg();

EAN-13

Barcoder::ean8('1234567890123')->toSvg();

Barcoder::ean8('1234567890123')->hideLabel()->toSvg();

// check digit will automatically be calculated
Barcoder::ean8('123456789012')->toSvg();

UPC-A

Barcoder::upca('123456789012')->toSvg();

Barcoder::upca('123456789012')->hideLabel()->toSvg();

// check digit will automatically be calculated
Barcoder::upca('12345678901')->toSvg();

UPC-E

Barcoder::upce('123456')->toSvg();

Barcoder::upce('123456')->hideLabel()->toSvg();

// check digit will automatically be calculated
Barcoder::upce('12345')->toSvg();

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

Keywords

laravel

FAQs

Package last updated on 06 Jan 2021

Related posts