chicpro/php-kakao-vision-api

PHP Client for Kakao Vision API

1.0.0 2018-03-09 06:10 UTC

README

Kakao Vision API 사용을 위한 PHP Client

MIT licensed.

Kakao Vision API

설치

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);