Skip to content

AceParts/php-dmtx-1

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

php-dmtx

Datamatrix reader/writer based on libdmtx.

Install

composer require "ptachoire/php-dmtx:*"

Usage

use Dmtx\Writer;

$writer = new Writer();

//encode message into file
$writer->encode('this is a message')
    ->saveAs('/tmp/image.png');

//encode message and output image 
echo $writer->encode('this is a message')
    ->dump();
use Dmtx\Reader;

$reader = new Reader();

//decode message from data
$reader->decode($encoded_value);

//decode message from file 
echo $reader->decodeFile('/tmp/image.png');

Test

composer install
./vendor/bin/phpunit

Credits

Project structure inspired by Negotiation by willdurand.

License

php-dmtx is released under the MIT License. See the bundled LICENSE file for details.

About

A datamatrix R/W based on libdmtx

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%