Character counter for SMS Messages Original insipration : danxexe/sms-counter
SMSCounter::count('some-string-to-be-counted');
which returns
stdClass Object
(
[encoding] => GSM_7BIT
[length] => 25
[per_message] => 160
[remaining] => 135
[messages] => 1
)
sms-counter-php
is available via composer on packagist.
{
"require": {
"instasent/sms-counter-php": "dev-master"
}
}
(PS: Separately maintained and slightly deviated.) Please check their documentation before updating your existing installation.
https://github.com/instasent/sms-counter-php
sms-counter-php
is available via composer on packagist.
{
"require": {
"instasent/sms-counter-php": "dev-master"
}
}
SMS Counter (PHP) is released under the MIT License