PHP code example of evp / gsms-bundle

1. Go to this page and download the library: Download evp/gsms-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/ */

    

evp / gsms-bundle example snippets


$response = $client->send('Your telephone number', 'Receiver telephone number', 'message');

if ($response->isSuccessful()) {
   // Do something when the sms has been sent
} else {
   // Do something when the sms has not been sent
   $lastResponse = $client->getLastResponse();
}
 php

// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        //... your existing bundles here
        new Evp\Bundle\GsmsBundle\EvpGsmsBundle(),
    );
}