Now, you can use iApp AI API service with PHP Composer package. It is the api client library for iApp AI API service for PHP.
Installation
$composerrequireiapp-ai/iapp-php-composer
Note: This environment is using composer.
Example Usages
<?phpini_set("include_path","iapp-php-composer");require_once'iapp-php-composer/module_api.php';################### API KEY ####################$object =newapi;$object->apikey("XXX Your API Key XXX");################### ID CARD OCR API ####################// OCR on ID Card Front Side, Back Side and Photocopied of ID Card$object->idcard_front("media/id-card-front.jpg");$object->idcard_back("media/id-card-back.jpg");$object->idcard_front_photocopied("media/copy_of_thai_idcard_trial.png");// result$res = $object->idcard_front("media/id-card-front.jpg");print_r($res);// ["address"]=>string(92) "23/20 หมู่ที่ 6 ต.กะทู้ อ.กะทู้ จ.ภูเก็ต"// ["detection_score"]=>float(0.9768817027409871)// ["district"]=>string(15) "กะทู้"// ["en_dob"]=>string(11) "11 Mar 1965"// ["en_expire"]=>string(11) "10 Mar 2012"// ["en_fname"]=>string(8) "Phensiri"// ["en_init"]=>string(4) "Mrs."// ["en_issue"]=>string(11) "10 Jan 2006"// ["en_lname"]=>string(11) "Pitikorckul"// ["en_name"]=>string(25) "Mrs Phensiri Pitikorckul"?>