bbit/airgram-bundle

symfony BBITAirGramBundle

Installs: 17

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 0

Open Issues: 0

Type:symfony-bundle

1.0 2015-02-09 16:13 UTC

This package is not auto-updated.

Last update: 2024-04-13 14:23:54 UTC


README

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