Using PHP Composer Package

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

$ composer require iapp-ai/iapp-php-composer

Note: This environment is using composer.

Example Usages

<?php

ini_set("include_path", "iapp-php-composer");
require_once 'iapp-php-composer/module_api.php';

################### API KEY ####################

$object = new api;

$object->apikey("XXX Your API Key XXX");

################### Passport OCR API ####################

$res = $object->passport_ocr("media/ukr-passport.jpeg");
print_r($res);

// result:
// string(73124) "{"check_composite":"0","check_date_of_birth":"2","check_expiration_date":"7","check_number":"0","check_personal_number":"7","country":"UKR","date_of_birth":"910824","expiration_date":"230925","face":...}

?>

Last updated