PHP code example of maxsky / baidu-aip-sdk

1. Go to this page and download the library: Download maxsky/baidu-aip-sdk 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/ */

    

maxsky / baidu-aip-sdk example snippets


$aip = new Baidu\Aip\AipOcrGeneric('App ID','API Key','Secret Key');

// 部分方法可传入 URL 地址
$aip->general(file_get_contents('File path'));