{
"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.
Enable the bundle in the kernel:
<?php
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new BBIT\AirGramBundle\BranchBitAirGramBundle(),
);
}
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');