Open ArturGoldyn opened 8 years ago
@ArturGoldyn I just follow your code and implement in my version of this code as a composer library you can found it here https://github.com/elminson/barcode https://packagist.org/packages/elminson/barcode
Thanks yourr your code. feel free to comment
Extract class - makes coding easier by encapsulating usable code in public static methods of class.
Add method GetPngData. Allows to obtain PNG data instead of immediately returning image to browser. You can obtain image using the following instructions:
$pngData = PhpBarcode::GetPngData($image); header('Content-type: image/png'); echo $pngData;