1. Go to this page and download the library: Download docxtract/php-sdk 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/ */
docxtract / php-sdk example snippets
$dx->authorised(); // is the key active?
$dx->models(); // which document types may it use?
use DocXtract\DocXtract;
$dx = new DocXtract('sk_your_api_key');
$result = $dx->extract('invoice.pdf', ['model' => 'invoice']);
echo $result['vendor']; // array access into the extracted data
echo $result->get('line_items.0.hsn'); // dot paths for nested values
echo $result->pages(); // 1
echo $result->extractionId(); // stored-result id, if store_db was on