PHP code example of chicpro / php-kakao-vision-api

1. Go to this page and download the library: Download chicpro/php-kakao-vision-api library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

chicpro / php-kakao-vision-api example snippets




$apiKey = 'REST API Key';

use chicpro\KakaoVision\FaceDetect;

$face = new FaceDetect();

$face->setCredentials($apiKey);

$face->setThreshold(0.7);
//$face->setFile('../files/example.jpg');
$face->setImageURL('https://example.com/example.jpg');

$response = $face->send();

print_r($response);