PHPackages                             fizzday/ocrphp - 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. fizzday/ocrphp

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

fizzday/ocrphp
==============

a simple and beautiful ocr php library which can easily recognize the image to text depend on tesseract-ocr (一个简洁优雅的图像识别转换文字的php类库, 须安装tesseract-ocr)

345516[2 issues](https://github.com/fizzday/OcrPHP/issues)PHP

Since Feb 3Pushed 9y ago3 watchersCompare

[ Source](https://github.com/fizzday/OcrPHP)[ Packagist](https://packagist.org/packages/fizzday/ocrphp)[ RSS](/packages/fizzday-ocrphp/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

OcrPHP
======

[](#ocrphp)

description
-----------

[](#description)

a simple and beautiful ocr php library which can easily recognize the image to text depend on tesseract-ocr ( 一个简洁优雅的图像识别转换文字的php类库, 须安装`tesseract-ocr`)

useage
------

[](#useage)

[english document](https://github.com/fizzday/OcrPHP)
[中文文档](https://github.com/fizzday/OcrPHP/blob/master/README-zh_cn.md)

### install with composer

[](#install-with-composer)

```
{
    "require": {
        "fizzday/ocrphp": "dev-master"
    }
}

```

or

```
composer require fizzday/ocrphp

```

> notice : before recognize , you need install the tesseract engine, which can find in my blog ...

### recognize

[](#recognize)

```
use Fizzday\OcrPHP;

OcrPHP::file($file)->run();

// or

OcrPHP::file($file)->lang($lang)->psm($psm)->run($type);

```

it shall like :

```
OcrPHP::file('/var/www/img/test.jpg')->lang('eng')->run();

// or

OcrPHP::file('/var/www/img/test.jpg')->lang(['eng', 'chi_sim'])->psm(3)->run('id');

```

> comment

- `$file` -- the source file in local
- `$lang` -- the recognize language , like english(eng), chinese(chi\_sim or chi\_tra) ......
- `$psm` -- the reconize type default 3
- `$type` -- the Specific results like id\_num, business card ...... which can return the info you need directly, default null, thie library have offered the id\_num return , you just need the 'id' param in run() method

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

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

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/27675?v=4)[Fizz Orange](/maintainers/fizz)[@fizz](https://github.com/fizz)

---

Top Contributors

[![fizzcome](https://avatars.githubusercontent.com/u/10354996?v=4)](https://github.com/fizzcome "fizzcome (1 commits)")[![fizzday](https://avatars.githubusercontent.com/u/16734971?v=4)](https://github.com/fizzday "fizzday (1 commits)")

### Embed Badge

![Health badge](/badges/fizzday-ocrphp/health.svg)

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

###  Alternatives

[char0n/ffmpeg-php

PHP wrapper for FFmpeg application

495236.3k1](/packages/char0n-ffmpeg-php)[goat1000/svggraph

Generates SVG graphs

133890.0k3](/packages/goat1000-svggraph)[imagekit/imagekit

PHP library for Imagekit

46877.3k10](/packages/imagekit-imagekit)[gravatarphp/gravatar

Gravatar URL builder which is most commonly called as a Gravatar library

12644.1k2](/packages/gravatarphp-gravatar)

PHPackages © 2026

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