1.使用composer 加载腾讯api
1.1.添加中国大陆地区腾讯云镜像高速下载
composer config -g repos.packagist composer https://mirrors.tencent.com/composer/
1.2.在打开的命令窗口执行命令安装 SDK,建议在tp框架目录下
composer require tencentcloud/tencentcloud-sdk-php
2.在tp框架控制层类中引入
use TencentCloud\Common\Credential;
use TencentCloud\Common\Profile\ClientProfile;
use TencentCloud\Common\Profile\HttpProfile;
use TencentCloud\Common\Exception\TencentCloudSDKException;
use TencentCloud\Ft\V20200304\FtClient;
use