PHP code example of colling-media / zipwhip-php-api

1. Go to this page and download the library: Download colling-media/zipwhip-php-api 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/ */

    

colling-media / zipwhip-php-api example snippets



$user = "YOUR_USERNAME_HERE"; //Typically, this is your phone number
$pass = "YOUR_PASSWORD_HERE";

$zipWhip = new \CollingMedia\ZipWhipClient($user, $pass);

$message = "Hello World";
$number = "5555555555"; //This can be an int too, either way works.

$zipWhip->sendMessage($number, $message); //Yay! Your message was sent, and you should be receiving it soon!