PHP code example of instasent / sms-counter-php
1. Go to this page and download the library: Download instasent/sms-counter-php 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/ */
instasent / sms-counter-php example snippets
use Instasent\SMSCounter\SMSCounter;
$smsCounter = new SMSCounter();
$smsCounter->count('some-string-to-be-counted');
$smsCounter->countWithShiftTables('some-string-to-be-counted');
use Instasent\SMSCounter\SMSCounter;
$smsCounter = new SMSCounter();
$smsCounter->sanitizeToGSM('dadáó'); //return dadao