PHP code example of jplarar / sns-bundle
1. Go to this page and download the library: Download jplarar/sns-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/ */
jplarar / sns-bundle example snippets
bash
$ php composer.phar update "jplarar/sns-bundle"
php
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new Jplarar\SNSBundle\JplararSNSBundle()
);
}
php
$snsClient = $this->get('amazon_sns_client');
php
$service = $snsClient->sendSMS(
'YOUR_MESSAGE',
'PHONE_NUMBER',
'SENDER_ID'
);
$result = $service->get('MessageId');