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

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

glushkovds/php-smpp
===================

Implementation SMPP v3.4 protocol. Includes sending and listening USSD.

v0.7.2(1y ago)2238.3k↑272%16[10 issues](https://github.com/glushkovds/php-smpp/issues)[1 PRs](https://github.com/glushkovds/php-smpp/pulls)1MITPHPPHP &gt;=7.4.0

Since Jan 5Pushed 1y ago2 watchersCompare

[ Source](https://github.com/glushkovds/php-smpp)[ Packagist](https://packagist.org/packages/glushkovds/php-smpp)[ Docs](https://github.com/glushkovds/php-smpp)[ RSS](/packages/glushkovds-php-smpp/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (10)Dependencies (1)Versions (27)Used By (1)

PHP implementation SMPP v3.4 protocol
=====================================

[](#php-implementation-smpp-v34-protocol)

[![Build Status](https://camo.githubusercontent.com/67ac077358a10bb09ab0588d2fe1de36e35536b929edaf219fe60a7386820acf/68747470733a2f2f7472617669732d63692e6f72672f676c7573686b6f7664732f7068702d736d70702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/glushkovds/php-smpp)[![Latest Stable Version](https://camo.githubusercontent.com/a37a501c394ac7d541355039d859a3daabdcf15a305232e675100b0ccfd92d92/68747470733a2f2f706f7365722e707567782e6f72672f676c7573686b6f7664732f7068702d736d70702f762f737461626c65)](https://packagist.org/packages/glushkovds/php-smpp)[![Total Downloads](https://camo.githubusercontent.com/320da5b04931ca46bccc100023a8535aacb7534005d41803e16a5a326be5fcc6/68747470733a2f2f706f7365722e707567782e6f72672f676c7573686b6f7664732f7068702d736d70702f646f776e6c6f616473)](https://packagist.org/packages/glushkovds/php-smpp)[![Latest Unstable Version](https://camo.githubusercontent.com/a6f2fdb19a59ca8d242a4f9953c72c19baaeb1fa798d6314f11353fb44d0554f/68747470733a2f2f706f7365722e707567782e6f72672f676c7573686b6f7664732f7068702d736d70702f762f756e737461626c65)](https://packagist.org/packages/glushkovds/php-smpp)[![License](https://camo.githubusercontent.com/2567e95fa28b33801e18570087bdaeab6daf693a5dd495c876d98108eb125646/68747470733a2f2f706f7365722e707567782e6f72672f676c7573686b6f7664732f7068702d736d70702f6c6963656e7365)](https://packagist.org/packages/glushkovds/php-smpp)

Allows send and read SMS and USSD.

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 glushkovds/php-smpp "^0.5"
```

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

[](#basic-usage-example)

To send a SMS you can do:

```
