PHP code example of bbit / airgram-bundle
1. Go to this page and download the library: Download bbit/airgram-bundle library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
bbit / airgram-bundle example snippets
bash
$ php composer.phar update bbit/airgram-bundle
php
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new BBIT\AirGramBundle\BranchBitAirGramBundle(),
);
}
php
$send = $this->get('bbit_airgam')->subscribe('[email protected]');
$send = $this->get('bbit_airgam')->send('[email protected]', 'message');