effective-solutions / sms-gateway-bundle
Effective Solutions (Pvt) Ltd. SMS Gateway Bundle
Requires
- php: >=5.3.0
This package is not auto-updated.
Last update: 2024-09-18 09:18:38 UTC
README
使用以下文档安装和配置 Gammu 库。
请使用捆绑包的 SMSGateway/gammu-config 文件夹中的 SMSD 配置文件,针对不同的运营商进行配置。根据您的调制解调器端口号更改端口。请查看以下链接中的多个调制解调器部分。[Gammu SMSD 配置文件] (http://wammu.eu/docs/manual/smsd/config.html)
现在您已准备好安装 Effective Solutions SMS Gateway Bundle。使用以下控制台命令。
php composer.phar require effective-solutions/sms-gateway-bundle
安装后,在您的 AppKernel.php 文件中添加以下内容
new EffectiveSolutions\SMSGatewayBundle\EffectiveSolutionsSMSGatewayBundle(),
请使用 Gammu 的 [MySQL 后端文档](http://wammu.eu/docs/manual/smsd/mysql.html#gammu-smsd-mysql) 配置您的 SMS 数据库。根据您的数据库设置更改 Bundle 的 Resources/config/parameters.yml 文件。
为了在您的代码中使用 SMSGatewayBundle,请添加以下行。请输入您的号码为 07xxxxxxxx。
$sms_gateway = $this->get('sms_gateway');
$sms_gateway->sendSMS('your_number','your_message');
感谢您使用 Effective Solutions SMSGateway Bundle。由 EffectiveSolutions.lk 提供支持