Download the PHP package lea-reift/ocr-space without Composer

On this page you can find all versions of the php package lea-reift/ocr-space. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package ocr-space

OCR Space API Wrapper

A simple wrapper for OCR Space API

MIT License Build Status

Installation

This wrapper requires:

You can easily install the wrapper with Composer:

Usage

The only required parameter for the Client is your apikey (this will be used in the requests). Then, you can chain the desired options in helper methods for the accepted request parameters.

API Reference

The Client class provides an interface to interact with the OCR.space API, enabling optical character recognition on images from different sources. Check OCR Space Documentation to dig deeper with the accepted values, but the library also counts with typed parameters methods, so use it won't be to difficult.

Constructor

Creates a new instance of the OCR Space client.

Parameters:

Data Input Methods

fromUrl

Sets an image URL as input for OCR processing.

Parameters:

fromFile

Sets a local file as input for OCR processing.

Parameters:

fromBase64String

Sets a base64 string representing an image as input for OCR processing.

Parameters:

Configuration Methods

language

Sets the language for OCR recognition.

Parameters:

isOverlayRequired

Determines if overlay is required on the processed image.

Parameters:

detectOrientation

Configures whether to automatically detect the image orientation.

Parameters:

fileType

Sets the file type of the input image.

Parameters:

isCreateSearchablePdf

Determines if a searchable PDF should be created.

Parameters:

isSearchablePdfHideTextLayer

Determines if the text layer should be hidden in the searchable PDF.

Parameters:

scale

Determines if the image should be scaled to improve OCR recognition.

Parameters:

isTable

Configures if the image contains data in table format.

Parameters:

engine

Sets the OCR engine to use.

Parameters:

options

Returns an array with all currently configured options.

Complete Usage Example

Contributing

Contributions are always welcome! Just open a Pull Request with your changes and I'll review it as soon as I can!

Credits

OCR.space is a service of a9t9 software GmbH. They are also in github

This package is an independent development that is in no way linked to a9t9 software. I want to acknowledge a9t9 for put this OCR service online.

License

This wrapper is made available under the MIT License (MIT). Please see License File for more information.


All versions of ocr-space with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
ext-curl Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package lea-reift/ocr-space contains the following files

Loading the files please wait ...