How do I configure php-barcode to generate code with the code128 encoding?
I’ve installed php-barcode, but I don’t know how to change the encoding.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
From the docs in the README included with the source:
So you need to have genbarcode installed, and then just call
$barcode = barcode_encode($yourCode, '128');You should take a moment and read through the README, as it explains how to use the library.