No description, website, or topics provided.
PHP
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
DependencyInjection
Resources/config
Service
Tests/Controller
.gitignore
BranchBitAirGramBundle.php
README.md
composer.json

README.md

AirGramBundle

SensioLabsInsight knpbundles.com

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');