PHP code example of dreammiu / zm-chat-gpt

1. Go to this page and download the library: Download dreammiu/zm-chat-gpt 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/ */

    

dreammiu / zm-chat-gpt example snippets

 httpProRT
curl_setopt($ch, CURLOPT_PROXYAUTH, CURLAUTH_BASIC); //代理认证模式
curl_setopt($ch, CURLOPT_PROXY, "127.0.0.1"); //代理服务器地址
curl_setopt($ch, CURLOPT_PROXYPORT, 1081); //代理服务器端口
curl_setopt($ch, CURLOPT_PROXYTYPE, CURLPROXY_HTTP); //使用http代理模式