Skip to content

Latest commit

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

parsextract-php

Packagist Version

A PHP client library for the ParseXtract API

Install Package

Securibox ParseXtract PHP wrapper is installed via Composer. Simply run the following command:

composer require securibox/parsextract

Alternative: Install package from zip

If you are not using Composer, simply download and install the latest packaged release of the library as a zip.

Authentication

In order to call PX-Studio API, you need to provide a client_id and a client_secret that you can retrieve from the Settings section of PX-Studio.

Getting started

The following is the minimum needed code to list all agent details and fields:

<?php// If you are using Composer (recommended)require'vendor/autoload.php';
useSecuribox\ParseXtract\ApiClient;
useSecuribox\ParseXtract\Entities;
// If you are not using Composer// require("path/to/parsextract-php/src/autoload.php");$document = Entities\Document::LoadFromPath("C:\\Path\\To\\file.pdf");
$client = newApiClient("Client_Id", "Client_Secret");
$result = $client->Parse($document);
foreach($result->XDataas$XData){
print("\n\n");
print("Name: ".$XData->name."\n");
print("Value: ".$XData->value."\n");
}

License

MIT

About

A PHP client library for the ParseXtract API

Resources

Stars

0 stars

Watchers

3 watching

Forks

Releases

Packages

Contributors

Languages