1. Go to this page and download the library: Download justmd5/tencent-ai 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/ */
justmd5 / tencent-ai example snippets
$config = [
'appKey' => '1106944xxx',
'appSecret' => 'dsgnbnWnX8Yxxxxxx',
'debug' => true,//true show debug info
];
$AI = new \Justmd5\TencentAi\Ai($config);