最近新拉项目,开发使用阿里组件发送短信的功能,先composer了alibabacloud/dysmsapi-20170525,结果报错: Class 'AlibabaCloud\SDK\Dysmsapi\V20170525\Dysmsapi' not found 查看旧项目composer.json,以前的alibaba组件只有 alibabacloud/dysmsapi-20170525 上网查找,发现有人说得安装以下组件: composer require alibabacloud/darabonba-openapi composer require alibabacloud/dysmsapi-20170525 2.0.8 结果我先试了一下 composer require alibabacloud/dysmsapi-20170525 2.0.8,结果报错: 于是,我又老实先安装了这个 composer require alibabacloud/darabonba-openapi,成功。 紧接着,安装这个 composer require alibabacloud/dysmsapi-20170525 2.0.8,结果还是报错: 我想了想,将后面的 2.0.8 去掉,用这个 composer require alibabacloud/dysmsapi-20170525,结果成功! 这里记录一下,希望可以帮到有同样困惑的小伙伴!