PHPackages                             sabioweb/ocr-space-package - 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. [Image &amp; Media](/categories/media)
4. /
5. sabioweb/ocr-space-package

ActiveLibrary[Image &amp; Media](/categories/media)

sabioweb/ocr-space-package
==========================

A pure PHP OCR package using OCR.Space API - Developed by Sabioweb Team

02PHP

Since Dec 2Pushed 5mo agoCompare

[ Source](https://github.com/sabioweb/OcrSpace-Package)[ Packagist](https://packagist.org/packages/sabioweb/ocr-space-package)[ RSS](/packages/sabioweb-ocr-space-package/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Sabioweb OCR Package
====================

[](#sabioweb-ocr-package)

A pure PHP OCR package for extracting text from images and PDF files using OCR.Space API.

**Developer:** [Sabioweb](https://sabioweb.com)
**Author:** Ramezanzadeh

[🇮🇷 Read in Persian / خواندن به فارسی](README.fa.md)

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

[](#installation)

### Install via Composer

[](#install-via-composer)

```
composer require sabioweb/ocr-space-package
```

### Install via Git

[](#install-via-git)

```
{
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/sabioweb/OcrSpace-Package.git"
        }
    ],
    "require": {
        "sabioweb/ocr-space-package": "dev-main"
    }
}
```

Features
--------

[](#features)

- ✅ Extract text from images (JPG, PNG)
- ✅ Extract text from PDF files
- ✅ Extract text from image and PDF URLs
- ✅ Support for multiple languages (Persian, English, Arabic, etc.)
- ✅ Advanced OCR settings
- ✅ Error handling and exceptions
- ✅ Compatible with PHP 8.3+
- ✅ Framework-independent (Pure PHP)

Usage
-----

[](#usage)

### Basic Usage: Extract Text from Image File

[](#basic-usage-extract-text-from-image-file)

```
