Php prompt class not found

help me take a look. The code of
is as follows: (in phpstorm, the left key of ctrl+ can enter this class)

clipboard.png

clipboard.png

clipboard.png

:
clipboard.png

I haven"t changed much about the sdk, of Tencent SMS messages used in

. I don"t know why I always report errors. Thank you ~

Php
Mar.20,2021

I encountered a similar problem last time. Look at the code include for this class, but report that not found
you can add try.. Temporarily remove catch and print out which files have been include before new SmsSingleSender ().

echo "
";
print_r(get_included_files());//
exit;
$ssender = new SmsSingleSender($appid, $appker);

see if this class has been entered by include?

I found the problem last time, that is, the case problem. Linux is strictly case-sensitive, while win and mac ignore case, so that the classes that should have been loaded are not loaded.


it depends on how you introduce classes automatically. Psr-4 take a look at the corresponding places of your composer.json, and others look at the corresponding introduction rules


SmsSingleSender is not loaded, so you can load it automatically:

"autoload": {
    "psr-4": {
      "SmsSingleSender\\": "Qcloud\Sms\SmsSingleSender", // 
    },
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e5b1be-4d99e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e5b1be-4d99e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?