我收到了这个错误。
我在我的 centos 7 服务器中编写了 Twilio SDK。
这是我的错误 php 文件的代码
<?php
require __DIR__ . '/vendor/autoload.php';
use Twilio\TwiML;
// Start our TwiML response
$response = new TwiML;
// Read a message aloud to the caller
$response->say(
"Thank you for calling! Have a great day.",
array("voice" => "alice")
);
echo $response;
我能做什么??
最佳答案
该类名为 Twilio\Twiml
.
在 linux 上,如果大小写不正确,将找不到该文件。
关于PHP 消息 : PHP Fatal error: Uncaught Error: Class 'Twilio\TwiML' not found in,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51249458/