I have a PHP application build using Yii2 Framework in that I have a feature where I upload documents, and after uploading I call an API that extracts the document data like