PHP code example of metanoia1989 / baidu-aip-sdk
1. Go to this page and download the library: Download metanoia1989/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/ */
metanoia1989 / baidu-aip-sdk example snippets
$config = [
'app_id' => 'your app id',
'api_key' => 'your api key',
'secret_key' => 'your secret key',
'debug' => true,
];
$app = new \metanoia1989\BaiduAIP\BaiduApp($config);
var_dump($app->imageCensor->antiSpam('测试'));