PHP code example of jormin / tuling

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

    

jormin / tuling example snippets


       $message = '西安天气';
       $userID = '用户ID';
       $location = '陕西省西安市雁塔区';
       $tuLing = new Jormin\TuLing\TuLing($apiKey);
       $tuLing->chat($message, $userID, $location);