PHPackages                             um/sms-charset-detector - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. um/sms-charset-detector

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

um/sms-charset-detector
=======================

Small library for detecting whether your sms is using gsm charset only or not

v1.0.0(5y ago)114MITPHP

Since Jan 10Pushed 5y ago1 watchersCompare

[ Source](https://github.com/u-mulder/sms-charset-detector)[ Packagist](https://packagist.org/packages/um/sms-charset-detector)[ RSS](/packages/um-sms-charset-detector/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

sms-charset-detector
====================

[](#sms-charset-detector)

[![GitHub Workflow Status](https://camo.githubusercontent.com/91a1e346b563f77839da52132418f70b665a8f7b2414f0f0a1ae81a350afb0f9/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f752d6d756c6465722f736d735f636861727365745f6465746563746f722f626173652d746573742d73756974653f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/91a1e346b563f77839da52132418f70b665a8f7b2414f0f0a1ae81a350afb0f9/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f752d6d756c6465722f736d735f636861727365745f6465746563746f722f626173652d746573742d73756974653f7374796c653d666c61742d737175617265)[![GitHub release (latest SemVer)](https://camo.githubusercontent.com/9a4a380edd6af5cda82cb6d8b655d9927e2a7667c7c31c001089825b18f857fc/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f752d6d756c6465722f736d732d636861727365742d6465746563746f723f736f72743d73656d766572267374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/9a4a380edd6af5cda82cb6d8b655d9927e2a7667c7c31c001089825b18f857fc/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f752d6d756c6465722f736d732d636861727365742d6465746563746f723f736f72743d73656d766572267374796c653d666c61742d737175617265)

Detecting sms charset using [gsm charset](https://en.wikipedia.org/wiki/GSM_03.38).

sms-charset-detector helps you to detect whether your sms content contains gsm charset symbols only or not.

Installation
------------

[](#installation)

Install package with [Composer](https://getcomposer.org/):

```
> composer require um/sms-charset-detector

```

Usage
-----

[](#usage)

Simple usage:

```
use Um\CharsetDetector\BasicCharsetDetector;

$detector = new BasicCharsetDetector();
$message = 'Some message to be sent over sms';

$encoding = $detector->detectCharset($message);
echo $encoding;	// outputs either 'gsm' or 'ucs'

// simple check if charset is 'gsm'
$messageHasGsmCharset = $detector->isGsmCharset($message);
var_dump($messageHasGsmCharset);   // outputs either `true` or `false`
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1946d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f1e3f442a4f6eda3b0b2c1cb630ae70f574135a1acec665d76329693ee956e02?d=identicon)[u-mulder](/maintainers/u-mulder)

---

Top Contributors

[![u-mulder](https://avatars.githubusercontent.com/u/1175728?v=4)](https://github.com/u-mulder "u-mulder (29 commits)")

---

Tags

gsmgsm-charsetgsm0338smsucssmsgsmUCSsms charset

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/um-sms-charset-detector/health.svg)

```
[![Health](https://phpackages.com/badges/um-sms-charset-detector/health.svg)](https://phpackages.com/packages/um-sms-charset-detector)
```

###  Alternatives

[php-smpp/php-smpp

PHP-based SMPP client lib

234197.5k8](/packages/php-smpp-php-smpp)[instasent/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.

491.3M4](/packages/instasent-sms-counter-php)[alexandr-mironov/php-smpp

PHP SMPP client lib, fork of onlinecity/php-smpp

4864.3k](/packages/alexandr-mironov-php-smpp)[benmorel/gsm-charset-converter

Converts GSM 03.38 strings to and from UTF-8

16423.5k](/packages/benmorel-gsm-charset-converter)[php8-smpp/php8-smpp

PHP8 SMPP client lib, based on fork of alexandr-mironov/php-smpp which is fork of onlinecity/php-smpp

128.1k](/packages/php8-smpp-php8-smpp)[matthewbdaly/sms-client

A generic SMS client library. Supports multiple swappable drivers.

2291.2k2](/packages/matthewbdaly-sms-client)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
