Skip to content

PHP Implementation for sending SMS through SMPP Protocol.

Notifications You must be signed in to change notification settings

Jagdish-J-P/smpp-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

smpp-php

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();

About

PHP Implementation for sending SMS through SMPP Protocol.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages