IMPORTANT: A new set of PHP bindings for libdmtx named php-dmtx has been released by Mikko Koppanen. Mikko's bindings perform both encoding and decoding of Data Matrix barcodes, and the old PHP bindings bundled with libdmtx (libdmtx-php) will likely be deprecated soon. Please try out Mikko's package, available at:
http://github.com/mkoppanen/php-dmtx
1. libdmtx Installation
libdmtx must be installed on your system before installing and running libdmtx-php (See libdmtx General Instructions).
2. libdmtx-php Installation
The following commands will prepare, build, and install libdmtx-php on your system:
$ phpize
$ ./configure [--prefix install directory];
$ make install
- Edit system php.ini file to include "extension=dmtx.so"
- Test with dmtx.php (e.g., Browse http://localhost/dmtx.php?d=123456)
3. Dependencies
These packages are required to install and run libdmtx-php:
- PHP: http://www.php.net
If you are using an RPM-based system then you can test for the following packages:
- php
- php-cli
- php-common
- php-devel
Some systems may also require:
- php-gd
4. Anything Else?
Is something missing from these instructions? If you spent hours searching for a solution that you feel should be included here then please update this page directly.
[Add your documentation here…]
5. This Document
Updates to this page ultimate feed into the wrapper/php/README file that is distributed with the source package. If you are looking for information specific to an older release, please refer to this file as it exists in that package version.