PHPackages                             alimranahmed/laraocr - 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. alimranahmed/laraocr

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

alimranahmed/laraocr
====================

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

1.2.0(4y ago)17081.9k—0.3%42[2 issues](https://github.com/alimranahmed/LaraOCR/issues)Apache-2.0PHPPHP ^7.0|^8.0

Since Aug 28Pushed 2y ago8 watchersCompare

[ Source](https://github.com/alimranahmed/LaraOCR)[ Packagist](https://packagist.org/packages/alimranahmed/laraocr)[ RSS](/packages/alimranahmed-laraocr/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (5)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/1fe6f2703e2593664991c601c6a3f686ec1ff32872d7aa01fb44b48608da0e5c/68747470733a2f2f706f7365722e707567782e6f72672f616c696d72616e61686d65642f6c6172616f63722f762f737461626c65)](https://packagist.org/packages/alimranahmed/laraocr)[![License](https://camo.githubusercontent.com/5f7932a719008cb0a6ddb2f62377fc041cd57f18c607cd11915724238ca4dec9/68747470733a2f2f706f7365722e707567782e6f72672f616c696d72616e61686d65642f6c6172616f63722f6c6963656e7365)](https://packagist.org/packages/alimranahmed/laraocr)[![Total Downloads](https://camo.githubusercontent.com/e15c20dc0f887308ab63811e52632bfef256b8f43fccc083237cfd5fe71eb990/68747470733a2f2f706f7365722e707567782e6f72672f616c696d72616e61686d65642f6c6172616f63722f646f776e6c6f616473)](https://packagist.org/packages/alimranahmed/laraocr)[![Latest Unstable Version](https://camo.githubusercontent.com/5ab883d8ba108ae04b3cc2c70932f6e82b05f319e1427d8bc274d82405c2c84e/68747470733a2f2f706f7365722e707567782e6f72672f616c696d72616e61686d65642f6c6172616f63722f762f756e737461626c65)](https://packagist.org/packages/alimranahmed/laraocr)

LaraOCR
-------

[](#laraocr)

Laravel Optical Character Reader(OCR) package using ocr engines like [Tesseract](https://github.com/tesseract-ocr/tesseract) under the hood.

Features
--------

[](#features)

1. Read text from image using WebUI/Programing Interface
2. Can be used as Laravel Facade
3. Configurable and extendable

Requirements
------------

[](#requirements)

OCR Engine Tesseract should be install in the system(e.g. for ubuntu `sudo apt-get install tesseract-ocr`). Follow Tesseract installation guide [here](https://github.com/tesseract-ocr/tessdoc#compiling-and-installation). Make sure from the command line you have the `tesseract` command available.

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

[](#installation)

Execute the following command in your terminal while you are in the root directory of your Laravel project to install this package:

```
composer require alimranahmed/laraocr

```

Then, publish this package using `php artisan vendor:publish` command

That's All!

Usages
------

[](#usages)

This package can be used to read text from image to text using different type of interface like Web and Programming.

##### Programming

[](#programming)

From anywhere of your code you can simply access the `OCR` facade to scan image as below:

```
\OCR::scan($imagePath);
```

##### WebUI

[](#webui)

After successful installation of this package we already have a web interface to parse text from image. Simply go to `{project-url}/ocr`, select your image then click the `Parse Image` button.

[![select_image](https://user-images.githubusercontent.com/7629427/33532834-fa434742-d894-11e7-8cce-65afb26a8af0.png)](https://user-images.githubusercontent.com/7629427/33532834-fa434742-d894-11e7-8cce-65afb26a8af0.png)

**Upload Image**

[![selected_image](https://user-images.githubusercontent.com/7629427/33533003-5487324e-d896-11e7-8b89-eb8fd5aa5e83.png)](https://user-images.githubusercontent.com/7629427/33533003-5487324e-d896-11e7-8b89-eb8fd5aa5e83.png)

**Uploaded Image**

[![output](https://user-images.githubusercontent.com/7629427/33533013-63d7b1a6-d896-11e7-8a3b-badd2203ae83.png)](https://user-images.githubusercontent.com/7629427/33533013-63d7b1a6-d896-11e7-8a3b-badd2203ae83.png)

**Parsed text**

Wish list
---------

[](#wish-list)

- Artisan command to read image and show parsed text from CLI
- Restful API to accept image and return parsed text
- Multilingual support
- Adding More options which are already available in OCR engines

### Contribution

[](#contribution)

**Anyone is always welcome to contribute on the project. If you want to work with:**

1. Just create and issue(even if you want to fix the issue).
2. After fixing any issue or adding any new feature just send a pull request
3. I will be happy to add your code for the betterment of this project. Thanks..

License
-------

[](#license)

This package is licensed under [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0)

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity50

Moderate usage in the ecosystem

Community20

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 93.4% 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 ~555 days

Total

3

Last Release

1710d ago

PHP version history (2 changes)1.0.0PHP ^7.0

1.2.0PHP ^7.0|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/b8c3fefb2074087ffdd55e9ebc7186a690d78ff1c23d059e6ccf68303eda0ad2?d=identicon)[al\_imran](/maintainers/al_imran)

---

Top Contributors

[![alimranahmed](https://avatars.githubusercontent.com/u/7629427?v=4)](https://github.com/alimranahmed "alimranahmed (57 commits)")[![Henning256](https://avatars.githubusercontent.com/u/1150063?v=4)](https://github.com/Henning256 "Henning256 (2 commits)")[![carlfredrikhero](https://avatars.githubusercontent.com/u/1053167?v=4)](https://github.com/carlfredrikhero "carlfredrikhero (1 commits)")[![isbkch](https://avatars.githubusercontent.com/u/216867?v=4)](https://github.com/isbkch "isbkch (1 commits)")

---

Tags

laravel55ocrtesseractimagedataOCR

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/alimranahmed-laraocr/health.svg)

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

###  Alternatives

[intervention/image

PHP Image Processing

14.3k194.3M2.2k](/packages/intervention-image)[league/glide

Wonderfully easy on-demand image manipulation library with an HTTP based API.

2.6k51.2M116](/packages/league-glide)[liip/imagine-bundle

This bundle provides an image manipulation abstraction toolkit for Symfony-based projects.

1.7k38.3M217](/packages/liip-imagine-bundle)[spatie/image

Manipulate images with an expressive API

1.4k54.4M138](/packages/spatie-image)[intervention/image-laravel

Laravel Integration of Intervention Image

1536.5M102](/packages/intervention-image-laravel)[intervention/gif

PHP GIF Encoder/Decoder

5720.3M9](/packages/intervention-gif)

PHPackages © 2026

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