定制 secgin/telsam-sms 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

secgin/telsam-sms

最新稳定版本:v1.1

Composer 安装命令:

composer require secgin/telsam-sms

包简介

Telsam Sms Library For Php

README 文档

README

Telsam sms gönderme kütüphanesidir.

Kurulum

composer require secgin/telsam-sms

Örnek Kullanım

use YG\Telsam\Sms\ApiClient;
use YG\Telsam\Sms\Config;
use YG\Telsam\Sms\EndPoints\DynamicSms;

require '../vendor/autoload.php';

$config = Config::create()
    ->apiUrl('...')
    ->username('...')
    ->password('...')
    ->defaultTitle('...')
    ->defaultSender('...');

// Bir mesajı bir numaraya göndermek için
$result = $apiClient->sendSingleSms(SingleSms::create('5468206321', 'deneme...'));

// Bir veya daha fazla numaraya aynı mesaajı göndermek için
$result = $apiClient->sendMultiSms(MultiSms::create(
    [
        '5468206321',
        '5059124232'
    ],
    'deneme...'));

// Bir veya daha fazla numara farklı mesaj göndermek için
$result = $apiClient->sendDynamicSms(DynamicSms::create(
    [
        '5468206321' => 'deneme1...',
        '5059124232' => 'deneme2...'
    ]));


if ($result->isSuccess())
    echo 'Gönderildi. (Mesaj Id: ' . $result->getPkgId() . ')';
else
    echo 'Hata: ' . $result->getErrorMessage() . '(' . $result->getErrorCode() . ')';

统计信息

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

GitHub 信息

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

其他信息

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