PHP code example of chareice / laravel-tencentcloud

1. Go to this page and download the library: Download chareice/laravel-tencentcloud 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/ */

    

chareice / laravel-tencentcloud example snippets


$service = app(Chareice\TencentCloud\Service::class);
// 获取到ocrClient
$ocrClient = $service->OcrClient();