bbit / airgram-bundle
symfony BBITAirGramBundle
Installs: 18
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Type:symfony-bundle
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-11-09 17:19:39 UTC
README
Step 1: Download BBITAirGramBundle using composer
{ "require": { "bbit/airgram-bundle": "dev-master", } }
Now tell composer to download the bundle by running the command:
$ php composer.phar update bbit/airgram-bundle
Composer will install the bundle to your project's vendor/BBIT
directory.
Step 2: Enable the bundle
Enable the bundle in the kernel:
<?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new BBIT\AirGramBundle\BranchBitAirGramBundle(), ); }
Step 3: Config
branch_bit_air_gram: apis: default: key: airgramkey secret: airgramsecret
Usage:
$send = $this->get('bbit_airgam')->subscribe('email@example.com'); $send = $this->get('bbit_airgam')->send('email@example.com', 'message');