joseorono/sms-length-calculator-composer
最新稳定版本:0.1
Composer 安装命令:
composer require joseorono/sms-length-calculator-composer
包简介
PHP-based SMS length calculator. Checks if a message can be sent as GSM 7bit charset or if Unicode charset must be used. Now Composer-friendly.
README 文档
README
PHP-based SMS length calculator. Checks if a message can be sent as GSM 7bit charset or if Unicode charset must be used.
Based on messente/sms-length-calculator Now Composer-friendly.
Checks if a message can be sent as GSM 7bit charset or if Unicode charset must be used.
How Install
Just run the following command in your Composer PHP project:
composer require joseorono/sms-length-calculator-composer
Composer Package: https://packagist.org/packages/joseorono/sms-length-calculator-composer
Usage example
$SmsCalc = new SmsLengthCalculator(); $text = "The morpheme can be reduplicated to emphasize the meaning of the word"; $sms_parts = $SmsCalc->getPartCount($text); echo "Message with text [".$text."] is sent as [".$sms_parts." SMS]\n"; // Output: Message with text [The morpheme can be reduplicated to emphasize the meaning of the word] is sent as [1 SMS]
统计信息
- 总下载量: 249
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2022-08-18