PHP code example of chicpro / php-kakao-translate

1. Go to this page and download the library: Download chicpro/php-kakao-translate 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-translate example snippets




use chicpro\KAKAO\TRANSLATE;

$appKey = '';

$translate = new TRANSLATE();

$translate->setAppKey($appKey);
$translate->setSourceLanguage('kr');
$translate->setTargetLanguage('en');

$query = '안녕하세요!';

$translate->setQuery($query);

$result = $translate->sendRequest();

print_r($result);