chicpro / php-kakao-vision-api
PHP Client for Kakao Vision API
1.0.0
2018-03-09 06:10 UTC
Requires
- php: >=5.5.0
- ext-curl: *
This package is not auto-updated.
Last update: 2024-11-10 06:43:51 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);