octopush/sms-bundle

将 Octopush SMS API 客户端与 Symfony 集成。

安装数: 25,811

依赖者: 0

建议者: 0

安全: 0

星星: 7

关注者: 2

分支: 11

开放问题: 1

类型:symfony-bundle

2.0.0 2021-03-15 10:08 UTC

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