96qbhy/code-scanner

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

扫码器

Installs: 62

Dependents: 0

Suggesters: 0

Security: 0

Stars: 3

Watchers: 0

Forks: 5

pkg:composer/96qbhy/code-scanner

0.1.0 2017-09-14 16:23 UTC

This package is not auto-updated.

Last update: 2025-09-28 11:13:41 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