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

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

sanskritick/laraocr
===================

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

1.0.1(5y ago)05491[1 PRs](https://github.com/sanskritick/laraocr/pulls)MITPHPPHP ^7.4|^8.0CI failing

Since Mar 14Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/sanskritick/laraocr)[ Packagist](https://packagist.org/packages/sanskritick/laraocr)[ Docs](https://github.com/sanskritick/laraocr)[ RSS](/packages/sanskritick-laraocr/feed)WikiDiscussions master Synced today

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

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/tesseract/wiki#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 sanskritick/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
------------

[](#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
--------------

[](#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
-----------

[](#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

37

—

LowBetter than 83% of packages

Maintenance54

Moderate activity, may be stable

Popularity14

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity63

Established project with proven stability

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 ~300 days

Total

2

Last Release

1949d ago

PHP version history (2 changes)1.0.0PHP ^7.0

1.0.1PHP ^7.4|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/5d30645e834a8506cbaddd1563ca98d20b621a8cd5eb298a4681d5310c6c0a3a?d=identicon)[vbasky](/maintainers/vbasky)

---

Tags

imagedataOCR

###  Code Quality

TestsPHPUnit

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/sanskritick-laraocr/health.svg)](https://phpackages.com/packages/sanskritick-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)[alimranahmed/laraocr

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

17081.9k](/packages/alimranahmed-laraocr)[intervention/image-laravel

Laravel Integration of Intervention Image

1496.5M102](/packages/intervention-image-laravel)

PHPackages © 2026

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