PHPackages                             godruoyi/ocr - 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. [Image &amp; Media](/categories/media)
4. /
5. godruoyi/ocr

ActiveLibrary[Image &amp; Media](/categories/media)

godruoyi/ocr
============

The Best Image Ocr SDK For BAT.

v3.0.3(1y ago)18914.7k391MITPHPPHP &gt;=8.1CI failing

Since Sep 29Pushed 1y ago13 watchersCompare

[ Source](https://github.com/godruoyi/ocr)[ Packagist](https://packagist.org/packages/godruoyi/ocr)[ Docs](https://github.com/godruoyi/ocr)[ Fund](https://images.godruoyi.com/wechat.png)[ RSS](/packages/godruoyi-ocr/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (4)Dependencies (9)Versions (20)Used By (1)

The Best Image Ocr SDK For BAT.

 [ ![build passed](https://github.com/godruoyi/ocr/actions/workflows/php.yaml/badge.svg) ](https://github.com/godruoyi/ocr/actions/workflows/php.yml) [ ![](https://camo.githubusercontent.com/c5a7c924393c0ab4de58ea0d2a56b4290fbb3ccfea62d50cf995ae3ae0d3bb0a/68747470733a2f2f636f6465636f762e696f2f67682f676f6472756f79692f6f63722f6272616e63682f6d61737465722f67726170682f62616467652e7376673f746f6b656e3d3741414f59434a4b3937) ](https://codecov.io/gh/godruoyi/ocr) [ ![License](https://camo.githubusercontent.com/0ec8323bf0286c8ca2a5e562d1d465141bdf7f71c4205b6015200290c20db57c/68747470733a2f2f706f7365722e707567782e6f72672f676f6472756f79692f6f63722f6c6963656e7365) ](https://github.com/godruoyi/ocr) [ ![Packagist Version](https://camo.githubusercontent.com/05e56a9b2022df3d734ec7a2a9a771eb9a8b83acfc59c0849163977b6293c814/68747470733a2f2f706f7365722e707567782e6f72672f676f6472756f79692f6f63722f762f737461626c65) ](https://packagist.org/packages/godruoyi/ocr) [ ![Total Downloads](https://camo.githubusercontent.com/17b8300ed0c3eecdb4550f3dae3bc8cc9a2775ccce085750aa1c48f5bfe27896/68747470733a2f2f706f7365722e707567782e6f72672f676f6472756f79692f6f63722f646f776e6c6f616473) ](https://github.com/godruoyi/ocr)

Feature
-------

[](#feature)

整合各平台（Baidu、腾讯、阿里云）领先的图片识别技术，打造开发者友好的 SDK 🎏🎏。

- 自定义缓存支持；
- 符合 PSR 标准，可以很方便的与你的框架结合；
- 命名不那么乱七八糟；
- 支持目前市面多家服务商
- 查看更新日志

Support
-------

[](#support)

- 百度 OCR
- 腾讯 OCR
- 阿里 OCR

Requirement
-----------

[](#requirement)

- PHP &gt;= 8.1
- composer

Installation
------------

[](#installation)

SDK VersionPHP VersionComposer Command3.x&gt;= 8.1`composer require "godruoyi/ocr:^3.0"`2.x&gt;= 7.2`composer require "godruoyi/ocr:^2.1"`Document
--------

[](#document)

完整的文档地址请参考 [Wiki](https://github.com/godruoyi/ocr/wiki)。

License
-------

[](#license)

MIT License.

###  Health Score

49

—

FairBetter than 94% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity41

Moderate usage in the ecosystem

Community22

Small or concentrated contributor base

Maturity81

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 95.2% 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

Every ~156 days

Recently: every ~243 days

Total

18

Last Release

538d ago

Major Versions

1.1.4 → v2.0.0-rc12020-11-12

v2.1.1 → v3.0.02023-07-08

PHP version history (3 changes)v2.0.0-rc1PHP &gt;=7.0

v2.1.0PHP &gt;=7.1.3

v3.0.0PHP &gt;=8.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/16079222?v=4)[Lianbo Xu](/maintainers/godruoyi)[@godruoyi](https://github.com/godruoyi)

---

Top Contributors

[![godruoyi](https://avatars.githubusercontent.com/u/16079222?v=4)](https://github.com/godruoyi "godruoyi (40 commits)")[![freyo](https://avatars.githubusercontent.com/u/13034231?v=4)](https://github.com/freyo "freyo (1 commits)")[![Mr-wangwei](https://avatars.githubusercontent.com/u/46190162?v=4)](https://github.com/Mr-wangwei "Mr-wangwei (1 commits)")

---

Tags

aliyun-ocrbaidu-ocrimage-recognitionlaravel-ocrocrphp-ocrtencent-ocrOCR

###  Code Quality

TestsPHPUnit

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/godruoyi-ocr/health.svg)

```
[![Health](https://phpackages.com/badges/godruoyi-ocr/health.svg)](https://phpackages.com/packages/godruoyi-ocr)
```

###  Alternatives

[tempest/framework

The PHP framework that gets out of your way.

2.2k31.1k12](/packages/tempest-framework)[laravel/framework

The Laravel Framework.

34.8k532.1M19.4k](/packages/laravel-framework)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.4M517](/packages/shopware-core)[shopware/platform

The Shopware e-commerce core

3.4k1.5M3](/packages/shopware-platform)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.6k38.2k](/packages/matomo-matomo)[oro/platform

Business Application Platform (BAP)

642140.7k104](/packages/oro-platform)

PHPackages © 2026

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