承接 drewlabs/envoyer-smpp-v3 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

drewlabs/envoyer-smpp-v3

最新稳定版本:v0.2.0

Composer 安装命令:

composer require drewlabs/envoyer-smpp-v3

包简介

SMPP driver for drewlabs envoyer client

README 文档

README

The library is an implementation of drewlabs/envoyer driver or client interface that interact with Short Message Service server for sending sms through SMPP v3.4 protocol.

In addition to the client, this lib also contains an encoder for converting UTF-8 text to the GSM 03.38 encoding.

Note This lib requires the sockets PHP-extension, and is not supported on Windows

Usage

use Drewlabs\Envoyer\Drivers\Smpp\Adapter;
use Drewlabs\Envoyer\Drivers\Smpp\ClientSecretKeyServer;
use Drewlabs\Envoyer\Message;

$config = require __DIR__.'/config/drivers.php';

// Create
$adapter = new Adapter(new ClientSecretKeyServer($config['host'], intval($config['port']), $config['user'], $config['password']));
$message = Message::new()->from('22990667812')->to('22890667723')->content('Hi!');

// Send the SMPP request
$result = $adapter->sendRequest($message);

统计信息

  • 总下载量: 27
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-06-12