Search by

dessop / ocr-laravel

dessop.mx

Official DESSOP OCR integration for Laravel

Package info

github.com/Dessop/ocr-laravel

pkg:composer/dessop/ocr-laravel

Statistics

Installs: 5

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.1.0 2026-09-15 22:53 UTC

This package is auto-updated.

Last update: 2026-09-15 22:54:12 UTC


README

Official Laravel integration for the DESSOP OCR API.

Packagist Version PHP 8.2+ Laravel 10, 11, 12 or 13 MIT License

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.