# thiagoalessio/tesseract-ocr-for-php

A wrapper to work with Tesseract OCR inside PHP.

Repository: https://github.com/thiagoalessio/tesseract-ocr-for-php
Canonical: https://ross.abutalabs.com/products/tesseract-ocr-for-php
Homepage: https://packagist.org/packages/thiagoalessio/tesseract_ocr
Language: PHP
License: MIT
License Family: permissive
Topics: ocr, tesseract, php, text-recognition, image-to-text
Last push: 2026-01-27T18:59:01+00:00

## Health v2 (maintenance only)
Score: 61/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 64, release rhythm 35, longevity 100
- inputs: {"age_days": 5260, "days_push": 218, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3040, forks 554 (observed 2026-08-28T04:07:39.263552+00:00)

## What it is
A PHP wrapper library around the Tesseract OCR command-line binary, providing a fluent API for extracting text from images. It supports multiple languages, character allowlists, and timeouts, and requires Tesseract 3.02+ installed separately.

## Use cases
- extract text from images in php
- run tesseract ocr from php
- read text from scanned documents
- multilingual ocr in a php app
- recognize text in screenshots
- convert image to text with php

## When to choose
- your project is in PHP and you need OCR
- you already have the Tesseract binary installed and want a clean PHP API
- you need multilingual text recognition with simple configuration

## When to avoid
- you cannot install external binaries on your host
- you need a pure-PHP OCR engine with no system dependencies
- you need high-accuracy OCR on complex layouts better served by cloud OCR services

## Facets
- artifact type: library
- maturity: stable
- function: ocr, image-processing, cli
- domain: computer-vision, image-processing, text-editors, developer-tools
- platform: php, windows, cross-platform
- tags: tesseract, text-recognition, wrapper, composer, linux, macos

## Member repositories
- thiagoalessio/tesseract-ocr-for-php (main) score 61

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:39.263552+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:29:15.373098+00:00, confidence not recorded.
  - readme: https://github.com/thiagoalessio/tesseract-ocr-for-php (fetched 2026-08-28T04:07:39.263552+00:00, sha 74d789c2145d)
  - homepage: https://packagist.org/packages/thiagoalessio/tesseract_ocr (fetched 2026-08-29T09:44:22.083879+00:00, sha 347eef38184c)
  - site_page: https://packagist.org/about (fetched 2026-08-29T09:44:22.095113+00:00, sha 29af46773a45)
  - site_page: https://packagist.org/packages/thiagoalessio/tesseract_ocr/stats (fetched 2026-08-29T09:44:22.093379+00:00, sha 36d39c07b9d7)
- Data as of 2026-08-30T08:39:29.467469+00:00.
