Skip to content

rayed/smpp_php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

SMPP Client written PHP

Introduction

PHP implementation for SMPP v3.4 client. The class implements SMS sending only, the features:

  • Support Unicode.
  • Support Multi-part messages.
  • Supports flash messages.

Usage

<?php

include 'class.smpp.php';

$src  = "phone_number"; // or text 
$dst  = "phone_number";
$message = "Test Message";

$s = new smpp();
$s->debug=1;

// $host,$port,$system_id,$password
$s->open("10.0.0.5", 12345, "system_id", "password");

// $source_addr,$destintation_addr,$short_message,$utf=0,$flash=0
$s->send_long($src, $dst, $message);

/* To send unicode 
$utf = true;
$message = iconv('Windows-1256','UTF-16BE',$message);
$s->send_long($src, $dst, $message, $utf);
*/

$s->close();
?>

About

SMPP Client written in PHP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages