PHPackages                             shababsoftwares/ocr-text-extractor - 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. shababsoftwares/ocr-text-extractor

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

shababsoftwares/ocr-text-extractor
==================================

This is a simple php project using Tesseract to extract text from any image.

v1.0(2y ago)316MITPHPPHP ^7.2

Since Jan 19Pushed 2y ago1 watchersCompare

[ Source](https://github.com/ShababSoftwares/OCR-Text-Extractor)[ Packagist](https://packagist.org/packages/shababsoftwares/ocr-text-extractor)[ RSS](/packages/shababsoftwares-ocr-text-extractor/feed)WikiDiscussions main Synced 1mo ago

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

OCR-Image Text Extracting
=========================

[](#ocr-image-text-extracting)

[![Downloads](https://camo.githubusercontent.com/8cd6a9474bb2d5924fe3dcafbfe8bb6af07f7c1dccdfb5855eb431c86b5da0b8/68747470733a2f2f706f7365722e707567782e6f72672f536861626162536f667477617265732f4f43522d546578742d457874726163746f722f642f746f74616c2e737667)](https://github.com/ShababSoftwares/OCR-Text-Extractor)[![License](https://camo.githubusercontent.com/f9d0d1ce4476d2845a066cceed72660bdbab0543c7c7fbe5d47f7644d370123f/68747470733a2f2f706f7365722e707567782e6f72672f536861626162536f667477617265732f4f43522d546578742d457874726163746f722f6c6963656e73652e737667)](LICENSE.md)

This is simple PHP Code using Tesseract-OCR to read and extract Text in any Image.

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

[](#installation)

First, install the package through Composer.

```
composer create-project shababsoftwares/ocr-text-extractor
```

How to Install Tesseract-OCR
----------------------------

[](#how-to-install-tesseract-ocr)

You need to have Tesseract-OCR installed and set Environment.

### On Window 10,11

[](#on-window-1011)

Installation guide on this link [How to install tesseract ocr on window](https://ironsoftware.com/csharp/ocr/blog/ocr-tools/tesseract-ocr-windows/)

Install Tesseract-OCR Edit Path under Environment System variables add new path `%InstalationPath%/Tesseract-OCR`like `C:\Program Files (x86)\Tesseract-OCR`

Add New Variable under System variables Variable Name: `TESSDATA_PREFIX`Variable Value: `%InstalledPath%/Tesseract-OCR` // C:\\Program Files (x86)\\Tesseract-OCR\\

### On Linux / ubuntu

[](#on-linux--ubuntu)

Step 1 : Update your system Begin the installation process by updating the APT Index.

```
    sudo apt update
```

Step 2 : Add Tesseract OCR 5 PPA to your system. To add the Tesseract OCR 5 PPA to your system, run the command below

```
    sudo add-apt-repository ppa:alex-p/tesseract-ocr-devel
```

Step 3 : Install Tesseract on Ubuntu Run the command :

```
    sudo apt install -y tesseract-ocr
```

Once installation is complete update your system

```
    sudo apt update
```

Confirm the Tesseract version installed.

```
    $ tesseract --version
```

Set Path of Image and Output text file.
---------------------------------------

[](#set-path-of-image-and-output-text-file)

```
shell_exec('"C:\\Program Files (x86)\\Tesseract-OCR\\tesseract" "C:\\xampp\\htdocs\\OCR-Text-Recognition\\images\\'.$file_name.'" out');

```

License
-------

[](#license)

The MIT License (MIT). Please see [LICENSE](LICENSE.md) for more information.

Shabab Softwares
----------------

[](#shabab-softwares)

[www.shababsoftwares.com](https://www.shababsoftwares.com)

Shabab Softwares (c) 2024

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 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

850d ago

### Community

Maintainers

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

---

Top Contributors

[![ml-arifshabab](https://avatars.githubusercontent.com/u/158835119?v=4)](https://github.com/ml-arifshabab "ml-arifshabab (23 commits)")

---

Tags

charactorextractimageocrreadread-textrecognitiontesseracttesseract-ocrtextphpimagetextOCRTesseract

### Embed Badge

![Health badge](/badges/shababsoftwares-ocr-text-extractor/health.svg)

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

###  Alternatives

[alimranahmed/laraocr

Laravel Optical Character Reader(OCR) package using different OCR engines like Tesseract

17081.9k](/packages/alimranahmed-laraocr)[yk/laravel-ocr

A wrapper for gocr.

1356.5k](/packages/yk-laravel-ocr)[eskandari/persianrender

PersianRender,Free persian letter conertor for using in php GD, etc.

2515.2k](/packages/eskandari-persianrender)[lciolecki/php-image-optimizer

PHP image file optimizer (uses https://github.com/bensquire/php-image-optim)

347.4k](/packages/lciolecki-php-image-optimizer)

PHPackages © 2026

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