Automate your document processing with GroupDocs.Parser. Extract data from documents by template. Process invoices, orders, reports and export data easily.
Start Free TrialGroupDocs.Parser Cloud for PHP is a wrapper around document data extraction REST API to parse over 50 document types. Parsing documents with predefined templates is one of the most valuable features of GroupDocs.Parser Cloud API. It is very simple and easy to define templates and extract data from invoices or other kinds of typical documents. The API provides methods to extract images, extract text and metadata from almost all of the most common file formats. Along with the regular documents, you can use the supported features on password protected files and containers like ZIP archives, OST/PST mail data files, eBooks, markups, and PDF portfolios in your PHP applications.
Check our Cloud SDKs for PHP at GitHub if you are looking for the source code to parse files in the Cloud.
You can try GroupDocs.Parser Low-Code PHP APIs without any limitations.
GroupDocs.Parser Cloud is also available as Docker image which can be used to self-host the service. Or you may build your own services using GroupDocs.Parser High-code APIs which currently drive both our Free Apps and REST APIs.
require_once(__DIR__ . '/vendor/autoload.php');
//TODO: Get your AppSID and AppKey at https://dashboard.groupdocs.cloud (free registration is required).
$configuration = new GroupDocs\Parser\Configuration();
$configuration->setAppSid("XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX");
$configuration->setAppKey("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX");
$infoApi = new GroupDocs\Parser\InfoApi($configuration);
try {
$response = $infoApi->getSupportedFileFormats();
foreach ($response->getFormats() as $key => $format) {
echo $format->getFileFormat() . " - " . $format->getExtension(), "\n";
}
} catch (Exception $e) {
echo "Something went wrong: ", $e->getMessage(), "\n";
PHP_EOL;
}
```