2017 © Pedro Peláez
 

library zbar-qrdecoder

A PHP wrapper for Zbar. Decodes images/photos containing QR codes.

image

rzani/zbar-qrdecoder

A PHP wrapper for Zbar. Decodes images/photos containing QR codes.

  • Wednesday, May 16, 2018
  • by rzani
  • Repository
  • 1 Watchers
  • 0 Stars
  • 4 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 20 Forks
  • 0 Open issues
  • 18 Versions
  • 300 % Grown

The README.md

ZBar QR code decoder for PHP

Build Status Latest Stable Version Total Downloads Latest Unstable Version License, (*1)

This is a PHP wrapper for zbar-tools - (only zbarimg at the moment). See http://zbar.sourceforge.net/., (*2)

Requirements

  • zbar-tools - To install on Ubuntu it's as easy as sudo apt-get install zbar-tools. See their project page for more platforms.
  • ImageMagick - It's required by Zbar, I'm not sure if they bundle it or not so make sure you have it

Installation

Install this package through Composer., (*3)

Add this to your composer.json dependencies:, (*4)

"require": {
   "robbiep/zbar-qrdecoder": "^2.0"
}

Run composer install to download the required files., (*5)

Usage

require_once('vendor/autoload.php');

$ZbarDecoder = new RobbieP\ZbarQrdecoder\ZbarDecoder();

# Optionally change the path of the zbarimg executable if you need to (default: /usr/bin)
$ZbarDecoder->setPath('/usr/local/bin');

# Decode the image
$result = $ZbarDecoder->make('/a/path/to/image_with_barcode.jpg');

echo $result; // Outputs the decoded text
echo $result->format; // Outputs the barcode's format
echo $result->code; // 200 if it decoded a barcode OR 400 if it couldn't find a barcode.

If you're using it in Laravel...

I've included a ServiceProvider class and a config if you need to change any options. Yyou need to add the ServiceProvider to config/app.php, (*6)

'providers' => array(
    ...
    'RobbieP\ZbarQrdecoder\ZbarQrdecoderServiceProvider'
)

You may need to publish the config php artisan vendor:publish, (*7)

Now you can use Zbar QR Decoder in your Laravel application!, (*8)

Usage (in Laravel)

# Decode the image
$result = ZbarDecoder::make('/a/path/to/image_with_barcode.png');

echo $result; // Outputs the decoded text
echo $result->format; // Outputs the barcode's format

Other barcodes supported

  • EAN_13 / ISBN
  • CODE_39
  • CODE_128

Contributing

  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

The Versions

16/05 2018

2.x-dev

2.9999999.9999999.9999999-dev

A PHP wrapper for Zbar. Decodes images/photos containing QR codes.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Rodrigo Zani
by Robbie Paul

laravel php qrcode qr decode zbar

16/05 2018

2.0.3

2.0.3.0

A PHP wrapper for Zbar. Decodes images/photos containing QR codes.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Robbie Paul

laravel php qrcode qr decode zbar

13/03 2016

2.0.2

2.0.2.0

A PHP wrapper for Zbar. Decodes images/photos containing QR codes.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Robbie Paul

laravel php qrcode qr decode zbar

13/03 2016

2.0.1

2.0.1.0

A PHP wrapper for Zbar. Decodes images/photos containing QR codes.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Robbie Paul

laravel php qrcode qr decode zbar

13/03 2016

dev-master

9999999-dev

A PHP wrapper for Zbar. Decodes images/photos containing QR codes.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Robbie Paul

laravel php qrcode qr decode zbar

13/03 2016

2.0.0

2.0.0.0

A PHP wrapper for Zbar. Decodes images/photos containing QR codes.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Robbie Paul

laravel php qrcode qr decode zbar

13/03 2016

1.x-dev

1.9999999.9999999.9999999-dev

A PHP wrapper for Zbar. Decodes images/photos containing QR codes.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Robbie Paul

laravel php qrcode qr decode zbar

13/03 2016

1.3.8

1.3.8.0

A PHP wrapper for Zbar. Decodes images/photos containing QR codes.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Robbie Paul

laravel php qrcode qr decode zbar

16/06 2015

1.3.7

1.3.7.0

A PHP wrapper for Zbar. Decodes images/photos containing QR codes.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Robbie Paul

laravel php qrcode qr decode zbar

10/02 2015

1.3.6

1.3.6.0

A PHP wrapper for Zbar. Decodes images/photos containing QR codes.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Robbie Paul

laravel php qrcode qr decode zbar

10/02 2015

1.3.5

1.3.5.0

A PHP wrapper for Zbar. Decodes images/photos containing QR codes.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Robbie Paul

laravel php qrcode qr decode zbar

10/12 2014

1.3.4

1.3.4.0

A PHP wrapper for Zbar. Decodes images/photos containing QR codes.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Robbie Paul

laravel php qrcode qr decode zbar

10/12 2014

1.3.3

1.3.3.0

A PHP wrapper for Zbar. Decodes images/photos containing QR codes.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Robbie Paul

laravel php qrcode qr decode zbar

10/12 2014

1.3.2

1.3.2.0

A PHP wrapper for Zbar. Decodes images/photos containing QR codes.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Robbie Paul

laravel php qrcode qr decode zbar

02/12 2014

1.3.1

1.3.1.0

A PHP wrapper for Zbar. Decodes images/photos containing QR codes.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Robbie Paul

laravel php qrcode qr decode zbar

02/12 2014

1.2

1.2.0.0

A PHP wrapper for Zbar. Decodes images/photos containing QR codes.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Robbie Paul

laravel php qrcode qr decode zbar

02/12 2014

1.1

1.1.0.0

Wrapper for Zbar QR decoder

  Sources   Download

The Requires

 

The Development Requires

by Robbie Paul

02/12 2014

1.0

1.0.0.0

Wrapper for Zbar QR decoder

  Sources   Download

The Requires

 

The Development Requires

by Robbie Paul