Download the PHP package operation-hardcode/smpp-php without Composer
On this page you can find all versions of the php package operation-hardcode/smpp-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download operation-hardcode/smpp-php
More information about operation-hardcode/smpp-php
Files in operation-hardcode/smpp-php
Package smpp-php
Short Description Async SMPP protocol implementation for PHP.
License MIT
Informations about the package smpp-php
Async SMPP v3.4 protocol implementation for PHP.
:exclamation: The library will be experimental until the first major release.
See the specification for more information about protocol.
Contents
- Installation
- Requirements
- Features
- Usage
- Receiver
- Transmitter
- Transceiver
- Signals
- Extensions
- Heartbeat
- Testing
- License
Installation
Requirements
This library requires PHP 8.1 or later.
It is recommended to install the phpinnacle/ext-buffer extension to speed up the phpinnacle/buffer.
Features
- [x] BIND_RECEIVER
- [x] BIND_TRANSMITTER
- [x] BIND_TRANSCEIVER
- [x] ALERT_NOTIFICATION
- [x] CANCEL_SM
- [x] DATA_SM
- [x] DELIVER_SM
- [x] ENQUIRE_LINK
- [x] GENERIC_NACK
- [x] OUTBIND
- [x] QUERY_SM
- [x] REPLACE_SM
- [x] SUBMIT_SM
- [x] UNBIND
- [ ] SUBMIT_MULTI
Usage
Receiver
Transmitter
Transceiver
Signals
Extensions
If you need more options when working with library, you can write an extension. The library provides 4 hooks that are called by the executor at different times of their work:
- If you want to extend the behaviour on successful connection, implement the
OperationHardcode\Smpp\Interaction\Extensions\AfterConnectionEstablishedExtension
interface. - If you want to extend the behaviour on disconnection, implement the
OperationHardcode\Smpp\Interaction\Extensions\AfterConnectionClosedExtension
interface. - If you want to extend the behaviour on each
PDU
produced by executor, implement theOperationHardcode\Smpp\Interaction\Extensions\AfterPduProducedExtension
interface. - Or vice versa, if you want to extend the behaviour on each
PDU
consumed by executor, implement theOperationHardcode\Smpp\Interaction\Extensions\AfterPduConsumedExtension
interface.
Heartbeat
The library provides the Heartbeat
extension which periodically send the ENQUIRE_LINK
command, required by SMPP specification.
You can configure the interval and timeout within which you must receive a ENQUIRE_LINK_RESP
with command status ESME_ROK
.
Testing
License
The MIT License (MIT). See License File for more information.
All versions of smpp-php with dependencies
amphp/socket Version ^1.2
psr/log Version ^1.0 || ^2.0 || ^3.0
phpinnacle/buffer Version ^1.2
amphp/sync Version ^1.4
amphp/http-client Version ^4.6