khanamiryan/qrcode-detector-decoder

QR code decoder / reader

2.0.2 2022-11-17 10:54 UTC

This package is auto-updated.

Last update: 2024-03-31 10:09:03 UTC


README

Tests Static Tests

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

Installation

The recommended method of installing this library is via Composer.

Run the following command from your project root:

$ composer require khanamiryan/qrcode-detector-decoder

Usage

require __DIR__ . "/vendor/autoload.php";
use Zxing\QrReader;
$qrcode = new QrReader('path/to_image');
$text = $qrcode->text(); //return decoded text from QR Code

Requirements

  • PHP >= 8.1
  • GD Library

Contributing

You can help the project by adding features, cleaning the code, adding composer and other.

  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