kmukku/qrcodedecoder

v1.0 2017-03-19 16:54 UTC

This package is auto-updated.

Last update: 2024-04-21 22:03:02 UTC


README

This is a PHP library to detect and decode QR-codes.
This is first and only QR code reader that works without extensions.
Ported from ZXing library

This is a fork from JelleDijkhuizen/php-qrcode-detector-decoder. I'm just trying to get it to work with composer/packagist properly.

Usage

composer require kmukku/qrcodedecoder

To use the class include the autoload file and use the class:

require_once __DIR__.'/vendor/autoload.php';

use kmukku\QRReader\QrReader

After that you can use the class like this:

$qr = new QrReader('Location/to/image/with/qrcode')
echo $qr->toText;

Requirements

  • PHP >= 5.6
  • GD Library or Imagick

Contributing

You can help the project by adding features, cleaning the code and update everything for php 7.

  1. Fork it
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request