PHPackages                             acpmasquerade/sms-counter-php - 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. acpmasquerade/sms-counter-php

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

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.

v1.0.5(11y ago)23125.6k—0%18[2 issues](https://github.com/acpmasquerade/sms-counter-php/issues)[3 PRs](https://github.com/acpmasquerade/sms-counter-php/pulls)MITPHPPHP &gt;=5.3.0

Since Jun 25Pushed 5y ago2 watchersCompare

[ Source](https://github.com/acpmasquerade/sms-counter-php)[ Packagist](https://packagist.org/packages/acpmasquerade/sms-counter-php)[ Docs](http://github.com/acpmasquerade/sms-counter-php)[ RSS](/packages/acpmasquerade-sms-counter-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (6)Used By (0)

SMS Counter (PHP)
=================

[](#sms-counter-php)

Character counter for SMS Messages Original insipration : [danxexe/sms-counter](https://github.com/danxexe/sms-counter)

[![Build Status](https://camo.githubusercontent.com/a873644f602cf759455eb6f70a15e4b820a0da2e70dfdf3eb09ff90fa57d8412/68747470733a2f2f7472617669732d63692e6f72672f6163706d6173717565726164652f736d732d636f756e7465722d7068702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/acpmasquerade/sms-counter-php)

Usage
-----

[](#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
------------

[](#installation)

`sms-counter-php` is available via [composer](http://getcomposer.org) on [packagist](https://packagist.org/packages/acpmasquerade/sms-counter-php).

```
{
    "require": {
        "instasent/sms-counter-php": "dev-master"
    }
}
```

### Install from Instasent repo

[](#install-from-instasent-repo)

##### (PS: Separately maintained and slightly deviated.) Please check their documentation before updating your existing installation.

[](#ps-separately-maintained-and-slightly-deviated-please-check-their-documentation-before-updating-your-existing-installation)

`sms-counter-php` is available via [composer](http://getcomposer.org) on [packagist](https://packagist.org/packages/instasent/sms-counter-php).

```
{
    "require": {
        "instasent/sms-counter-php": "dev-master"
    }
}
```

License
-------

[](#license)

SMS Counter (PHP) is released under the [MIT License](LICENSE.txt)

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity42

Moderate usage in the ecosystem

Community14

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 90.5% 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

Every ~82 days

Total

5

Last Release

4017d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3e7ea4da05a588deb3bd00a186b8c4ad90b947ef054582a93594f08e400ffe01?d=identicon)[acpmasquerade](/maintainers/acpmasquerade)

---

Top Contributors

[![acpmasquerade](https://avatars.githubusercontent.com/u/1309805?v=4)](https://github.com/acpmasquerade "acpmasquerade (19 commits)")[![carlbergman](https://avatars.githubusercontent.com/u/30546?v=4)](https://github.com/carlbergman "carlbergman (2 commits)")

---

Tags

smscountergsm

### Embed Badge

![Health badge](/badges/acpmasquerade-sms-counter-php/health.svg)

```
[![Health](https://phpackages.com/badges/acpmasquerade-sms-counter-php/health.svg)](https://phpackages.com/packages/acpmasquerade-sms-counter-php)
```

###  Alternatives

[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)[php-smpp/php-smpp

PHP-based SMPP client lib

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