octopush / sms-bundle
将 Octopush SMS API 客户端与 Symfony 集成。
2.0.0
2021-03-15 10:08 UTC
Requires
- php: >=5.4
- octopush/sms-api: 2.0.0
- symfony/framework-bundle: ~2.3 || ~3.0 || ~4.0
This package is auto-updated.
Last update: 2024-09-15 23:49:17 UTC
README
将 Octopush SMS API 客户端 与 Symfony 集成。
安装
推荐通过 composer 安装 OctopushSMSBundle。
$ composer require octopush/sms-bundle
然后在您的内核中启用它
<?php public function registerBundles() { $bundles = [ //... new Octopush\Bundle\SMSBundle\OctopushSMSBundle(), ]; }
配置
octopush_sms: user_login: "**********@*******" api_key: "****************"
用法
您可以使用以下方法从 Symfony 容器获取 Octopush SMS API 客户端:
<?php $container->get('octopush_sms.api.client');
示例
有使用 Symfony 标准版提供的 设置示例 的捆绑包。
有关使用客户端的更多信息,请参阅 Octopush SMS API。