jagdish-j-p/smpp-php

PHP Implementation of SMPP protocol to send sms.

Maintainers

Package info

github.com/Jagdish-J-P/smpp-php

pkg:composer/jagdish-j-p/smpp-php

Statistics

Installs: 62

Dependents: 0

Suggesters: 0

Stars: 4

Open Issues: 0

v1.0.0 2023-02-04 07:23 UTC

This package is auto-updated.

Last update: 2026-03-04 12:28:56 UTC


README

PHP Implementation for sending SMS through SMPP Protocol.

Become a sponsor

Your support allows me to keep this package free, up-to-date and maintainable. Alternatively, you can spread the word!

Installation

You can install the package via composer:

composer require jagdish-j-p/smpp-php

Usage

  • Send SMS
    use JagdishJP\SmppPhp\Smpp;
    
    $smpp = new Smpp('localhost',2775, true, true);
    $smpp->bindTransmitter('SENDERID', 'USERNAME', 'PASSWORD');

    $response = $smpp->sendSms('recepient number', 'Message');
    $smpp->close();
  • Read SMS
    use JagdishJP\SmppPhp\Smpp;
    
    $smpp = new Smpp('localhost',2775, true, true);
    $smpp->bindReceiver('SENDERID', 'USERNAME', 'PASSWORD');

    $message = $smpp->readSms();
    $smpp->close();
  • Send and Read SMS
    use JagdishJP\SmppPhp\Smpp;
    
    $smpp = new Smpp('localhost',2775, true, true);
    $smpp->bindTransreceiver('SENDERID', 'USERNAME', 'PASSWORD');

    $response = $smpp->sendSms('recepient number', 'Message');

    $message = $smpp->readSms();
    $smpp->close();