PHP code example of baidu-chelianwang / dm-kit
1. Go to this page and download the library: Download baidu-chelianwang/dm-kit 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/ */
baidu-chelianwang / dm-kit example snippets
$loader = ['loader' => [
'type' => 'json', //json或者yaml,
'cache_class' => '' //cache类名,如不需要cache可为空,
]];
$policyManager = PolicyManagerFactory::getInstance($botId, $confPath, $loader);