96qbhy/code-scanner

There is no license information available for the latest version (0.1.0) of this package.

扫码器

0.1.0 2017-09-14 16:23 UTC

This package is not auto-updated.

Last update: 2024-04-14 02:50:44 UTC


README

扫码器

功能特性

  1. 支持二维码和条形码两种扫描

环境需求

  1. 系统 zbar 扩展

如何安装 zbar ?

  1. mac : brew install zbar
  2. linux : apt install imagemagick libzbar-dev
  3. windows : 传送门

安装

composer require 96qbhy/code-scanner

使用

require 'vendor/autoload.php';

use Qbhy\CodeScanner\CodeScanner;

var_dump(CodeScanner::scan('./bar.png'));

目前只支持 mac 和 linux 平台, windows 等我编译好在添加 windows_scanner.exe

https://github.com/96qbhy/code-scanner-php
96qbhy@gmail.com