定制 iamirnet/samantel 二次开发

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

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

iamirnet/samantel

最新稳定版本:1.0.0

Composer 安装命令:

composer require iamirnet/samantel

包简介

A PHP wrapper for Samantel

README 文档

README

Latest Version GitHub last commit Packagist Downloads

PHP SamanTel Webservice

This project is designed to help you make your own projects that interact with the SamanTel

Installation

composer require iamirnet/samantel
Click for help with installation

Install Composer

If the above step didn't work, install composer and try again.

Debian / Ubuntu

sudo apt-get install curl php-curl
curl -s http://getcomposer.org/installer | php
php composer.phar install

Composer not found? Use this command instead:

php composer.phar require "iamirnet/samantel"

Installing on Windows

Download and install composer:

  1. https://getcomposer.org/download/
  2. Create a folder on your drive like C:\iAmirNet\SamanTel
  3. Run command prompt and type cd C:\iAmirNet\SamanTel
  4. composer require iamirnet/samantel
  5. Once complete copy the vendor folder into your project.

Getting started

composer require iamirnet/samantel

require 'vendor/autoload.php';
// config by specifying api key and secret
$api = new \iAmirNet\SamanTel\SamanTelSOAP("username","password");

=======

Get Balance

//Call this before running any functions
print_r($api->balance());

=======

Send Message

//Call this before running any functions
print_r($api->send(/*Sender Number*/"989999xxxx", /*Receive Number*/"989xxxxxxxxxx",/*Text Message*/ "متن پیامک", /* Flash */ 1));

=======

Send Multiple

//Call this before running any functions
print_r($api->sendMultiple(/*Senders Number*/["989999xxxx"], /*Receives Number*/["989xxxxxxxxxx"],/*Text Messages*/ ["متن پیامک"], /* Flash */ [1], , /* Custom Ids */ [140210111]));

=======

DeliveryReport

//Call this before running any functions
print_r($api->deliveryReport(/*Sender Number*/"989999xxxx", /*Message ID*/48222256, /*from ID Or Null*/'48222254', ));

=======

ViewReceive

//Call this before running any functions
print_r($api->viewReceive(/*Number*/"989999xxxx", /*Message ID Or Null*/48222256));

=======

GetStatuses

//Call this before running any functions
print_r($api->getStatuses(/* Custom Ids */ [140210111]));

=======

GetStatuses_OriginalID

//Call this before running any functions
print_r($api->getStatuses_OriginalID(/* Custom Ids */ [140210111]));

=======

Acknowledge

//Call this before running any functions
print_r($api->acknowledge(/* Custom Ids */ [140210111]));

Contribution

  • Give us a star ⭐
  • Fork and Clone! Awesome
  • Select existing issues or create a new issue and give us a PR with your bugfix or improvement after. We love it ❤️

Donate

  • USDT Or TRX: TUE8GiY4vmz831N65McwzZVbA9XEDaLinn 😘❤

统计信息

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

GitHub 信息

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

其他信息

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