PHP code example of dhalsted / sms-utils
1. Go to this page and download the library: Download dhalsted/sms-utils 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/ */
dhalsted / sms-utils example snippets
php cli_validate.php '(444) 111-2222'
$sv = new \Dhalsted\SMS\SMSValidator(TWILIO_SID, TWILIO_TOKEN);
$validated_number = $sv->validateMobileNumber($phone_number, $country_code);
$validated_number = $sv->validateMobileNumber($phone_number, $country_code, array('mobile'));