定制 joseorono/sms-length-calculator-composer 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2022-08-18