PHPackages                             loyalty-lt/php-smpp - 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. loyalty-lt/php-smpp

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

loyalty-lt/php-smpp
===================

Implementation SMPP v3.4 protocol with Lithuanian language support. Fork of glushkovds/php-smpp.

v1.0.0(8mo ago)00MITPHPPHP &gt;=7.4.0

Since Aug 28Pushed 8mo agoCompare

[ Source](https://github.com/Loyalty-lt/php-smpp)[ Packagist](https://packagist.org/packages/loyalty-lt/php-smpp)[ Docs](https://github.com/Loyalty-lt/php-smpp)[ RSS](/packages/loyalty-lt-php-smpp/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

PHP implementation SMPP v3.4 protocol (Lithuanian Language Support)
===================================================================

[](#php-implementation-smpp-v34-protocol-lithuanian-language-support)

[![Latest Stable Version](https://camo.githubusercontent.com/6bac6655e51d5ed43b05314d8604c12635263f5f24a24690a554a1a84473d05c/68747470733a2f2f706f7365722e707567782e6f72672f6c6f79616c74792d6c742f7068702d736d70702f762f737461626c65)](https://packagist.org/packages/loyalty-lt/php-smpp)[![Total Downloads](https://camo.githubusercontent.com/239c55cb8b7c7e55994b73f6f5d286bbdc809f97adf9f247e807c16f1c1f5e59/68747470733a2f2f706f7365722e707567782e6f72672f6c6f79616c74792d6c742f7068702d736d70702f646f776e6c6f616473)](https://packagist.org/packages/loyalty-lt/php-smpp)[![License](https://camo.githubusercontent.com/8da444dc5a8dfe4eb84ce673bb0bddd6219782190aca9c2b3092f0dc7aaf343a/68747470733a2f2f706f7365722e707567782e6f72672f6c6f79616c74792d6c742f7068702d736d70702f6c6963656e7365)](https://packagist.org/packages/loyalty-lt/php-smpp)

**Fork of [glushkovds/php-smpp](https://github.com/glushkovds/php-smpp) with Lithuanian language support for SMS messages.**

Allows send and read SMS and USSD with proper Lithuanian characters (ąčęėįšųūž) handling.

This is a simplified SMPP client lib for sending or receiving smses through [SMPP v3.4](http://www.smsforum.net/SMPP_v3_4_Issue1_2.zip).

In addition to the client, this lib also contains an encoder for converting UTF-8 text to the GSM 03.38 encoding, and a socket wrapper. The socket wrapper provides connection pool, IPv6 and timeout monitoring features on top of PHP's socket extension.

This lib has changed significantly from it's parent.

This lib requires the [sockets](http://www.php.net/manual/en/book.sockets.php) PHP-extension, and is not supported on Windows.

Inheritance
-----------

[](#inheritance)

This implementation based on [php-smpp library](https://github.com/agladkov/php-smpp)

Key differences:

1. Send and listen USSD messages
2. Object oriented way with Pdu, ShortMessage, Sms and other classes
3. PSR-1,4,12 support
4. Requires php7.4+
5. Phpunit auto tests

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

[](#installation)

```
composer require loyalty-lt/php-smpp
```

Lithuanian Language Features
----------------------------

[](#lithuanian-language-features)

This fork adds proper support for Lithuanian SMS messages:

- ✅ **Lithuanian characters**: ąčęėįšųūž ĄČĘĖĮŠŲŪŽ
- ✅ **Automatic UCS2 encoding** for Lithuanian text
- ✅ **Concatenated SMS** support for long messages
- ✅ **Mixed content** support (Lithuanian + English + numbers)

### Original Installation (glushkovds)

[](#original-installation-glushkovds)

```
composer require glushkovds/php-smpp "^0.5"
```

Basic usage example
-------------------

[](#basic-usage-example)

To send a SMS you can do:

```
