zarulizham/laravel-ocrmypdf
This is my package OCRmyPDF
1,003
1
Larablocks Analysis
zarulizham/laravel-ocrmypdf works with Laravel 8 to 13 (latest release v1.0.4, Oct 25, 2026).
Recommendation checks
PromisingPromising: maintained and up to date, meets 2 of 4 checks; not yet widely used.
- Works with Laravel 13, the current version
- Released in the last 12 months (Oct 25, 2026)
- 53 downloads a month (needs 10,000)
- 1 GitHub star (needs 100)
State
Maintained- Last stable release: Oct 25, 2026.
- 1 release in the last 12 months.
- First released: Aug 16, 2021.
- Monthly downloads: 53.
- 0 open issues on GitHub.
Data from Packagist and GitHub, checked by Larablocks on Dec 1, 2026.
| Install | |
|---|---|
composer require zarulizham/laravel-ocrmypdf |
|
| Latest Version: | v1.0.4 |
| PHP: | ^8.0|^8.1|^8.2 |
| Laravel: | 8 – 13 |
| License: | MIT |
| Last Updated: | Oct 25, 2026 |
| Links: | GitHub · Packagist |
Maintainer: zarulizham
Laravel OCRmyPDF
Pre-requisite
OCRmyPDF: https://ocrmypdf.readthedocs.io/en/latest/
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
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
Put PDF inside ./tests/storage and edit test script.
composer test
License
The MIT License (MIT). Please see License File for more information.
Related Packages
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| v1.0.4 | ^8.0| | ^8.0| | MIT | |
| v1.0.3 | ^8.0| | ^8.0| | MIT | |
| v1.0.2 | ^8.0| | ^8.0| | MIT | |
| v1.0.1 | ^8.0 | ^8.37 | MIT | |
| v1.0.0 | ^8.0 | ^8.37 | MIT |