PHP code example of ges / ocr

1. Go to this page and download the library: Download ges/ocr library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

ges / ocr example snippets


config/ges-ocr.php

use Ges\Ocr\DocumentProcessor;

$result = app(DocumentProcessor::class)->processFile(
    path: $absolutePath,
    mimeType: $mimeType,
    originalName: $originalName,
);

Ges\Ocr\Models\DocumentProcessing
bash
php artisan ocr:install
bash
php artisan ocr:install --migrate
bash
php artisan ocr:install --check
php artisan ocr:install --no-config
php artisan ocr:install --no-migrations
php artisan ocr:install --force
bash
php artisan ocr:health