bbit/airgram-bundle

symfony BBITAirGramBundle

安装: 17

依赖: 0

建议: 0

安全: 0

星标: 1

关注者: 2

分支: 0

公开问题: 0

类型:symfony-bundle

1.0 2015-02-09 16:13 UTC

This package is not auto-updated.

Last update: 2024-09-14 16:39:51 UTC


README

SensioLabsInsight knpbundles.com

步骤 1:使用 composer 下载 BBITAirGramBundle

{
    "require": {
        "bbit/airgram-bundle": "dev-master",
    }
}

现在告诉 composer 下载捆绑包,运行以下命令

$ php composer.phar update bbit/airgram-bundle

Composer 将将捆绑包安装到您的项目的 vendor/BBIT 目录。

步骤 2:启用捆绑包

在内核中启用捆绑包

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new BBIT\AirGramBundle\BranchBitAirGramBundle(),
    );
}

步骤 3:配置

branch_bit_air_gram:
    apis:
        default:
            key: airgramkey
            secret: airgramsecret

用法

$send = $this->get('bbit_airgam')->subscribe('email@example.com');
$send = $this->get('bbit_airgam')->send('email@example.com', 'message');