acpmasquerade / sms-counter-php
SMS Counter PHP Class Library which detects encoding of an SMS message text, counts the characters as per the encoding and gives page limit information.
Installs: 121 127
Dependents: 0
Suggesters: 0
Security: 0
Stars: 23
Watchers: 2
Forks: 18
Open Issues: 5
Requires
- php: >=5.3.0
This package is not auto-updated.
Last update: 2021-07-09 23:33:22 UTC
README
Character counter for SMS Messages Original insipration : danxexe/sms-counter
Usage
SMSCounter::count('some-string-to-be-counted');
which returns
stdClass Object
(
[encoding] => GSM_7BIT
[length] => 25
[per_message] => 160
[remaining] => 135
[messages] => 1
)
Installation
sms-counter-php
is available via composer on packagist.
{ "require": { "instasent/sms-counter-php": "dev-master" } }
Install from Instasent repo
(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" } }
License
SMS Counter (PHP) is released under the MIT License