Skip to content
/ smpp Public

SMPP V3.4 Server and Client, with Swoole and Hyperf of PHP

License

Notifications You must be signed in to change notification settings

jenawant/smpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MSProGateWay(SMPP Server+Client)

MSProGateWay License PHP Version Swoole Version

🚀MSProGateWay 是一个基于PHP + Swoole + Hyperf编写的轻量级,超高性能短信网关,支持SMPP V3.4协议,用于搭建基于SMPP协议的短信服务平台,亦可做为客户端使用。

🛠️环境依赖

  • Swoole 4.4+
  • PHP 7.1+

⚙️安装

composer require jenawant/smpp

⚡️独立启动SMPP模拟器(服务端/客户端)

  • 安装Swoole4.4+扩展和PHP7.1+clone本项目
  • cd demo
  • 参考config-sample.ini生成config.ini配置文件,按需修改配置文件
  • php server.php启动服务端
  • php client.php 1 2启动客户端模拟发送短信,测试性能。第一个参数代表启动多少个连接 第二个参数代表发送多少条短信

⚡️Hyperf框架内使用

  • 参考 Tcp Server配置 章节创建业务类,并参考demo/server.php中的逻辑完善业务类
  • 执行命令发布配置php bin/hyperf.php vendor:publish jenawant/smpp,修改配置文件config/autoload/smpp.php中callbacks业务类路径
  • 参考 Tcp Server配置 章节编辑服务器配置,指定端口及回调控制器路径
  • 重启服务

demo基于配置文件.ini,实际项目可从config/autoload/smpp.php获取配置。

😇鸣谢

About

SMPP V3.4 Server and Client, with Swoole and Hyperf of PHP

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages