Barcode reading library using the Softek Software barcode reader toolkit
C C++
Latest commit 128840d Apr 23, 2010 Mikko Koppanen Remove mac files
Failed to load latest commit information.
tests Remove mac files Apr 22, 2010
README fix a typo Nov 12, 2009
bardecode.c correcting typos in PHP constant names Apr 22, 2010
config.m4 first commit Nov 12, 2009
php_bardecode.h first commit Nov 12, 2009


Installing on Linux system

1. Download the bardecode library from

2. Install libtiff and libjpeg. This step depends on your distro but for example
   debian you can do the following:

    apt-get install libtiff4 libjpeg62

3. Unpack the barcode library to for example under /opt. This should create
   directory similar to /opt/bardecoder_7_2_1 with the the contents of the 
   package inside it.

4. Copy the php-bardecode sources to /opt/php-bardecode and run the following
   commands. Choose the correct directory based on the system, either glibc_2_4
   or glibc_2_0.
     cd /opt/php-bardecode
     ./configure --with-bardecode=/opt/bardecoder_7_2_1/glibc_2_4
     make install

5. Add php-bardecode to php.ini:

How to read barcodes

  The following PHP code reads a barcode from a file:

$bardecode = new bardecode();
$bardecode->setParameter(bardecode::READ_EAN13, true);