bbit / airgram-bundle
symfony BBITAirGramBundle
1.0
2015-02-09 16:13 UTC
Requires
- php: >=5.3.2
Requires (Dev)
- satooshi/php-coveralls: v0.6.1
- symfony/symfony: >=2.4.0
This package is not auto-updated.
Last update: 2024-09-14 16:39:51 UTC
README
步骤 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');