Download the PHP package max13/laravel-barcode without Composer
On this page you can find all versions of the php package max13/laravel-barcode. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download max13/laravel-barcode
More information about max13/laravel-barcode
Files in max13/laravel-barcode
Package laravel-barcode
Short Description Laravel package to manage and generate barcodes
License MIT
Homepage https://github.com/max13/laravel-barcode
Informations about the package laravel-barcode
Laravel package to manage and create barcodes
With this package you can manage barcodes (external barcodes, checkings, etc…) or generate your own as long as you configure it correctly.
Installation
You can install the package via composer:
This package embeds corresponding fonts to write the barcode on a webpage. You will see how to use them in the Usage section below.
Configuration
Barcode
types are available like so (defaults to ean13
):
type | has font |
---|---|
ean8 | yes |
ean13 | yes |
To change the barcode type used, set to your .env
file: BARCODE_TYPE=
with the barcode type you want to use.
When a barcode has a font and you would use it, you need to publish the package assets using:
Don’t forget to include the css files in your layouts.
If you need to see or change this package config file, you can publish the config file using this command:
This will export the config file to your app’s config folder.
Usage
And finally, if you need to write the barcode using the embedded font, you need to get the encoded form of the barcode (ex: in case of ean13
, the font will be applied on html class f-ean13
):
Testing
Contributing
Please see CONTRIBUTING for details.
Credits
License
The MIT License (MIT). Please see License File for more information.