dessop / ocr-laravel
Official DESSOP OCR integration for Laravel
Requires
- php: ^8.2
- dessop/ocr: ^1.0
- illuminate/support: ^10.0|^11.0|^12.0|^13.0
Requires (Dev)
- orchestra/testbench: ^8.0|^9.0|^10.0|^11.0
- phpunit/phpunit: ^10.0|^11.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Official Laravel integration for the DESSOP OCR API.
Package: dessop/ocr-laravel
Core SDK: dessop/ocr
API: https://ocr.dessop.com
Overview
This package connects a Laravel application to the DESSOP OCR service so you can process documents, extract text and integrate OCR workflows without handling the lower-level HTTP transport yourself.
Requirements
- PHP 8.2+
- Laravel 10, 11, 12 or 13
Installation
composer require dessop/ocr-laravel
The service provider is auto-discovered by Laravel, so no manual registration is needed in most cases.
Configuration
Add the following values to your .env file:
DESSOP_OCR_URL=https://ocr.dessop.com DESSOP_OCR_API_KEY=dss_your_key DESSOP_OCR_TIMEOUT=300
If you want to publish the package configuration explicitly:
php artisan vendor:publish --tag=dessop-ocr-config
Usage
Process a file with the facade
use Dessop\Ocr\Laravel\Facades\Ocr; $result = Ocr::process( storage_path('app/documentos/factura.pdf') ); $text = $result->text();
Inject the client directly
use Dessop\Ocr\OcrClient; public function process(OcrClient $ocr) { $result = $ocr->process($path); return $result->text(); }
Why this package exists
This package is intentionally focused on the OCR transport and integration layer.
It keeps the Laravel side clean and lightweight while leaving these concerns outside the package scope:
- Classification
- Field extraction
- Business rules
- Document AI workflows
- Custom validation logic
Architecture
Laravel app
└── dessop/ocr-laravel
└── dessop/ocr SDK
└── DESSOP OCR API
This integration is designed to be the bridge between your application and the OCR service, while domain-specific intelligence remains in separate services.
License
MIT. Copyright (c) 2026 DESSOP.