Download the PHP package docparser/docparser-php without Composer

On this page you can find all versions of the php package docparser/docparser-php. 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 docparser-php

Official Docparser API PHP Client

docparser-php provides convenient PHP bindings for the Docparser API.


Documentation | Installation | Configuration | Usage | Contributing | License | Changelog



Documentation

For a generic description of the Docparser API, please see our developer documentation here. Our developer documentation lists all available API methods with their parameters and expected responses.

Installation

This library requires php 5.5 or above.

Using Composer:

or in composer.json:

Configuration

Create a Docparser PHP Client by using your Docparser API Token:

Test Your Authentication

You can call our ping() method to test your API key. The method retuns a boolean value which indicates if a connection to our API could be established and that the API key is working.

Usage

Document Parsers

List All Document Parsers

Returns a list of the document parsers created in your account.

Documents

The Docparser PHP SDK offers three different methods for importing your document.

All import methods allow you to pass a $remoteId with your document. The remote ID can be any arbitrary string with a maximum length of 255 characters. The submitted value will be kept throughout the processing and will be available later once you obtain the parsed data with our API or through Webhooks.

Upload Document From Local File System

Reads a file from your local filesystem and uploads it to your document parser.

Upload Document By Providing File Content

This method creates a new document in your document parser based on the raw file content or a file pointer. Additionally, a file name can be provided.

Fetch Document From An URL

Imports a document from a publicly available HTTP(S) URL.

Parsed Data

The Docparser API allows you to retrieve the extracted document data. You can either list the data of multiple documents or get the data of a specific document.

Both methods used for retrieving parsed data allow you to specify the "format" parameter - this allows you to choose between a flat structure and a nested array structure. For most implementations, leaving it as "object" will serve you fine.

Please note: Polling the API for new results is not the recommended way of obtaining your data. A much better way than polling our API for parsed data is to use Webhooks. By using webhooks, parsed data will be pushed to your API immediately after parsing.

Get Data Of One Document

Fetches the parsed data for a specific document by providing a $parserId and the $documentId. The $documentId is the Docparser Document ID which is returned when importing a document through the API.

Get Data Of Multiple Documents

Fetches the results of multiple documents parsed by a specific document parser. This function allows you granular filtering and ordering of the results. Please see our documentation for the list of available parameters.

Contributing

Bug reports and pull requests are welcome on GitHub.

Please follow PSR-2 with your contributions and also take care of any changed / newly needed phpDoc comments.

License

The library is available as open source under the terms of the MIT License.

The MIT License (MIT)

Copyright (c) 2016 DAUSINGER DIGITAL EURL.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Changelog


All versions of docparser-php with dependencies

PHP Build Version
Package Version
Requires guzzlehttp/guzzle Version ~6.0
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 docparser/docparser-php contains the following files

Loading the files please wait ....