Download the PHP package milon/barcode without Composer
On this page you can find all versions of the php package milon/barcode. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download milon/barcode
More information about milon/barcode
Files in milon/barcode
Package barcode
Short Description Barcode generator like Qr Code, PDF417, C39, C39+, C39E, C39E+, C93, S25, S25+, I25, I25+, C128, C128A, C128B, C128C, 2-Digits UPC-Based Extention, 5-Digits UPC-Based Extention, EAN 8, EAN 13, UPC-A, UPC-E, MSI (Variation of Plessey code)
License LGPL-3.0
Rated 5.00 based on 1 reviews
Informations about the package barcode
This is a barcode generation package inspired by https://github.com/tecnickcom/TCPDF. Actually, I use that package's underline classes for generating barcodes. This package is just a wrapper of that package and adds compatibility with Laravel 5.
I used the following classes of that package.
- src/Milon/Barcode/Datamatrix.php (include/barcodes/datamatrix.php)
- src/Milon/Barcode/DNS1D.php (tcpdf_barcodes_1d.php)
- src/Milon/Barcode/DNS2D.php (tcpdf_barcodes_2d.php)
- src/Milon/Barcode/PDF417.php (include/barcodes/pdf417.php)
- src/Milon/Barcode/QRcode.php (include/barcodes/qrcode.php)
This package relies on php-gd extension. So, make sure it is installed on your machine.
Installation
Begin by installing this package through Composer. Just run following command to terminal-
You can also edit your project's composer.json
file to require milon/barcode
. Just make sure you choosed the compatible version of the package from the following table.
Compatibility
Laravel Version | Barcode Package Version |
---|---|
11.* | ^11.0 |
10.* | ^10.0 |
9.* | ^9.0 |
8.* | ^8.0 |
7.* | ^7.0 |
6.* | ^6.0 |
5.0 and 5.1 | ^5.1 |
4.0, 4.1, 4.2 | ^4.2 |
Configuration
If you are using version 6 or above, then the Service Provider and aliases will be published automatically. For prior versions, please follow the below instruction.
After updating Composer, add the service provider to your config/app.php
file:
For Laravel version 4.*, add the following lines to your app/config/app.php
file:
Make sure you have write permission to the storage path. By default it sets to /storage
folder.
For version 4.2 alias will be like this-
Publishing Configuration
To customize the barcode settings (e.g., store path), publish the configuration file(s) by running the appropriate command in the terminal:
Usage
Bar-code generator like Qr Code, PDF417, C39, C39+, C39E, C39E+, C93, S25, S25+, I25, I25+, C128, C128A, C128B, C128C, 2-Digits UPC-Based Extention, 5-Digits UPC-Based Extention, EAN 8, EAN 13, UPC-A, UPC-E, MSI (Variation of Plessey code)
generator in html, png , jpeg embedded base64 code and SVG canvas
Width and Height example
Color
Show Text
2D Barcodes
1D Barcodes
Running without Laravel
You can use this library without using Laravel.
Example:
License
This package is published under GNU LGPLv3
license and copyright to Nuruzzaman Milon. Original Barcode generation classes were written by Nicola Asuni. The license agreement is on project's root.
Buy me a coffee ☕
License: GNU LGPLv3
Package Author: Nuruzzaman Milon
Original Barcode Class Author: Nicola Asuni
Package Copyright: Nuruzzaman Milon
Barcode Generation Class Copyright:
Nicola Asuni
Tecnick.com LTD
www.tecnick.com
All versions of barcode with dependencies
ext-gd Version *
illuminate/support Version ^7.0|^8.0|^9.0|^10.0 | ^11.0