PHPackages                             96qbhy/code-scanner - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. 96qbhy/code-scanner

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

96qbhy/code-scanner
===================

扫码器

0.1.0(8y ago)3625PHP

Since Sep 14Pushed 8y agoCompare

[ Source](https://github.com/96qbhy/code-scanner-php)[ Packagist](https://packagist.org/packages/96qbhy/code-scanner)[ RSS](/packages/96qbhy-code-scanner/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

code-scanner
============

[](#code-scanner)

扫码器

功能特性
----

[](#功能特性)

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

环境需求
----

[](#环境需求)

1. 系统 `zbar` 扩展

### 如何安装 `zbar` ?

[](#如何安装-zbar-)

1. mac : `brew install zbar`
2. linux : `apt install imagemagick libzbar-dev`
3. windows : [传送门](https://www.baidu.com/s?ie=utf-8&f=8&rsv_bp=1&tn=baidu&wd=windows%20%E5%AE%89%E8%A3%85zbar&oq=windows%2520zbar%2520%25E5%25AE%2589%25E8%25A3%2585&rsv_pq=dd09af4e0003d2c5&rsv_t=3d54uTul6LHome6h3jaZVlnF1b0zsCpPHU0zbRf4bNtVzDA3IPnFZvxyTso&rqlang=cn&rsv_enter=1&inputT=1441&rsv_sug3=40&rsv_sug1=17&rsv_sug7=000&rsv_sug2=0&rsv_sug4=2066&rsv_sug=2)

安装
--

[](#安装)

```
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`。

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3164d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a0e15ef096c1cef56717d13b05333600e4fb13d2c91ddd0aaffb9a550f2543d3?d=identicon)[qbhy](/maintainers/qbhy)

---

Top Contributors

[![qbhy](https://avatars.githubusercontent.com/u/24204533?v=4)](https://github.com/qbhy "qbhy (6 commits)")

### Embed Badge

![Health badge](/badges/96qbhy-code-scanner/health.svg)

```
[![Health](https://phpackages.com/badges/96qbhy-code-scanner/health.svg)](https://phpackages.com/packages/96qbhy-code-scanner)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
