Kakao Vision API 사용을 위한 PHP Client
MIT licensed.
PHP Composer 를 통해 패키지를 설치합니다.
$ composer require chicpro/php-kakao-vision-api
require 'vendor/autoload.php';
$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);