PHPackages                             zarulizham/laravel-ocrmypdf - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. zarulizham/laravel-ocrmypdf

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

zarulizham/laravel-ocrmypdf
===========================

This is my package OCRmyPDF

v1.0.3(1y ago)1847↓25%2MITPHPPHP ^8.0|^8.1|^8.2

Since Aug 16Pushed 1y ago1 watchersCompare

[ Source](https://github.com/zarulizham/laravel-ocrmypdf)[ Packagist](https://packagist.org/packages/zarulizham/laravel-ocrmypdf)[ Docs](https://github.com/zarulizham/laravel-ocrmypdf)[ GitHub Sponsors](https://github.com/zarulizham)[ RSS](/packages/zarulizham-laravel-ocrmypdf/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (9)Versions (5)Used By (0)

Laravel OCRmyPDF
================

[](#laravel-ocrmypdf)

[![Latest Version on Packagist](https://camo.githubusercontent.com/979c39193d92abb4027c8644bf9a3f975daaa25e5b93261b39c3c09bb8782c5d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7a6172756c697a68616d2f6c61726176656c2d6f63726d797064662e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/zarulizham/laravel-ocrmypdf)[![GitHub Tests Action Status](https://camo.githubusercontent.com/5ebf113f1a72aeaa4b63532fb5e3453d08fe54dcf1dee0a79ff67c291e1f03ef/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f7a6172756c697a68616d2f6c61726176656c2d6f63726d797064662f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/zarulizham/laravel-ocrmypdf/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/db5cd8647678cc6dcf97b4dc7ddf0a3d336844b9ec43bff0fe8cbae7bfac7ba4/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f7a6172756c697a68616d2f6c61726176656c2d6f63726d797064662f436865636b253230262532306669782532307374796c696e673f6c6162656c3d636f64652532307374796c65)](https://github.com/zarulizham/laravel-ocrmypdf/actions?query=workflow%3A%22Check+%26+fix+styling%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/8c41cae63e5eaf53408c4b45bfa890b6bfab287102744b0b36ba114cc386fab1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7a6172756c697a68616d2f6c61726176656c2d6f63726d797064662e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/zarulizham/laravel-ocrmypdf)

Pre-requisite
-------------

[](#pre-requisite)

OCRmyPDF:

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

[](#installation)

You can install the package via composer:

```
composer require zarulizham/laravel-ocrmypdf
```

You can publish the config file with:

```
php artisan vendor:publish --provider="ZarulIzham\OCRmyPDF\OCRmyPDFServiceProvider" --tag="laravel-ocrmypdf-config"
```

This is the contents of the published config file:

```
return [
    'path' => env('OCRMYPDF_PATH', '/usr/local/bin/ocrmypdf'),
];
```

Usage
-----

[](#usage)

```
OCRmyPDF::input(storage_path('panic.pdf'))
    ->output(storage_path('converted/panic.pdf'))
    ->redoOcr()
    ->addOption('--redo-ocr')
    ->addOption('--title Panic Document')
    ->addOption('--author Zarul Izham')
    ->begin();
```

Testing
-------

[](#testing)

Put PDF inside ./tests/storage and edit test script.

```
composer test
```

License
-------

[](#license)

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

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance50

Moderate activity, may be stable

Popularity19

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 94.7% 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 ~454 days

Total

4

Last Release

368d ago

PHP version history (2 changes)v1.0.0PHP ^8.0

v1.0.2PHP ^8.0|^8.1|^8.2

### Community

Maintainers

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

---

Top Contributors

[![zarulizham](https://avatars.githubusercontent.com/u/10229855?v=4)](https://github.com/zarulizham "zarulizham (36 commits)")[![harithkhairol](https://avatars.githubusercontent.com/u/33217725?v=4)](https://github.com/harithkhairol "harithkhairol (2 commits)")

---

Tags

laravelzarulizhamlaravel-ocrmypdf

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/zarulizham-laravel-ocrmypdf/health.svg)

```
[![Health](https://phpackages.com/badges/zarulizham-laravel-ocrmypdf/health.svg)](https://phpackages.com/packages/zarulizham-laravel-ocrmypdf)
```

###  Alternatives

[spatie/laravel-health

Monitor the health of a Laravel application

85810.0M83](/packages/spatie-laravel-health)[spatie/laravel-livewire-wizard

Build wizards using Livewire

4061.0M4](/packages/spatie-laravel-livewire-wizard)[nativephp/mobile

NativePHP for Mobile

82724.0k43](/packages/nativephp-mobile)[tonysm/importmap-laravel

Use ESM with importmap to manage modern JavaScript in Laravel without transpiling or bundling.

148399.8k1](/packages/tonysm-importmap-laravel)[laracraft-tech/laravel-useful-additions

A collection of useful Laravel additions!

58109.4k](/packages/laracraft-tech-laravel-useful-additions)[keepsuit/laravel-temporal

Laravel temporal.io

4875.0k](/packages/keepsuit-laravel-temporal)

PHPackages © 2026

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