Document AI PHP snippet

992 views
Skip to first unread message

Ambre

unread,
Apr 12, 2022, 1:38:16 PM4/12/22
to Google Cloud Developers
Hello,

I have a PHP application. I would like to plug it to Document AI API to parse documents. I have spent hours looking for PHP code examples but I can't find any. Is it possible to use that API via PHP please? Are there any code snippet or documentation available please?

Thank you!

Ismail (Cloud Platform Support)

unread,
Apr 12, 2022, 2:14:03 PM4/12/22
to Google Cloud Developers
Hi Ambre,

Currently, Document AI supported client libraries are Java, Node.js and Python. Feel free to submit a feature request via our Public Issue Tracker

Ismail (Cloud Platform Support)

unread,
Apr 13, 2022, 12:29:51 PM4/13/22
to Google Cloud Developers
The Document AI still can be called using PHP as per this issue. For further questions, I recommend reaching out to our PHP developers team

Ambre

unread,
Apr 20, 2022, 5:10:57 AM4/20/22
to Google Cloud Developers
Hello,

I have managed to use the PHP library. It lacks some documentation about the right way to handle the DocumentAI response. The response includes the parsed file which makes it impossible to analyze it via simple reading. There are certainly some methods but they aren't documented in the library documentation. Do you have any ideas on how to retrieve the fields related to the Document AI invoice parser please?

Thank you

Le mercredi 13 avril 2022 à 18:29:51 UTC+2, Ismail (Cloud Platform Support) a écrit :
The Document AI still can be called using PHP as per this issue. For further questions, I recommend reaching out to our PHP developers team

On Tuesday, April 12, 2022 at 2:14:03 PM UTC-4 Ismail (Cloud Platform Support) wrote:
Hi Ambre,

Currently, Document AI supported client libraries are Java, Node.js and Python. Feel free to submit a feature request via our Public Issue Tracker

Jose Gutierrez Paliza

unread,
Apr 21, 2022, 10:28:39 AM4/21/22
to Google Cloud Developers

If You are using The library google-cloud-php-document-ai[1] you’ll need to create an issue into the repository of Google Cloud PHP[2].


[1]https://github.com/googleapis/google-cloud-php-document-ai/blob/main/README.md 

[2]https://github.com/googleapis/google-cloud-php/issues
Reply all
Reply to author
Forward
0 new messages