PHP code example of driveop / twilio-bundle

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

    

driveop / twilio-bundle example snippets

 bash
$ php composer.phar update "driveop/twilio-bundle"
 php

// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new DriveOp\TwilioBundle\DriveOpTwilioBundle()
    );
}
 php

        $twilioClient = $this->get('twilio_client');
 php
 
    $message = $twilioClient->sendWhatsAppMessage($to, $from, $body);