定义Twilio服务目录的正确路径

问题描述:

我没有能力使用composer来安装twilio-php库,所以我正在手动安装它。作为一个nubie来理解如何发起一个新的服务是非常令人困惑的......注意第一个要求陈述它指向Services/Twilio目录。下载Twilio-Php库后,没有名为Services的目录。此外,$ client = new Services Twilio也需要正确的路径。我该怎么做,帮忙?定义Twilio服务目录的正确路径

<?php 
    require("Services/Twilio.php"); 
    require("database.php"); 

    // initiate phone call via Twilio REST API  
    // Set our AccountSid and AuthToken 
    $AccountSid = "ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"; 
    $AuthToken = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"; 

    // Instantiate a new Twilio Rest Client 
    $client = new Services_Twilio($AccountSid, $AuthToken); 

latest install instructions显示以下信息:

<?php 
    // Require the bundled autoload file - the path may need to change 
    // based on where you downloaded and unzipped the SDK 
    require __DIR__ . '/twilio-php-master/Twilio/autoload.php'; 

在哪个目录你解压缩库?