picqer / php-barcode-generator

Barcode generator in PHP that is easy to use, non-bloated and framework independent.
GNU Lesser General Public License v3.0
1.67k stars 402 forks source link

how to call formats from array #64

Closed diekaines closed 5 years ago

diekaines commented 6 years ago

i have an array with some barcode types that this library supports and want to create the images .

trying

$barcode_value = '123456' ;

foreach($arr as $single){
echo '<img src="data:image/png;base64,' . base64_encode($generator->getBarcode($barcode_value,$generator::$single  )) . '">';       
}

gives me errors

Any help ?

Thank you

casperbakker commented 5 years ago

Without the error messages we cannot help, and it is probably a mistake in your own code rather then in this library.