stromaler/123sms.biz 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

stromaler/123sms.biz

最新稳定版本:1.3

Composer 安装命令:

composer require stromaler/123sms.biz

包简介

Simple class for work with http://123sms.biz (http://123sms.sk) API

README 文档

README

Simple class for work with http://123sms.biz (http://123sms.sk) API

This class fasten work with 123sms.biz SMS gateway.

It can: -- Send one / multiple SMS -- Get remaining credit information -- Verify telephone number

If you want more functionality from 123sms.biz API, feel free to message me stromajer.michal@gmail.com.

I implemented only most used functions what I need.

Example:

SEND SMS:

$sms = new Stromaler\Biz123Sms\SmsManager();
$sms->setSender('Me')
    ->setCredentials('myUsername','password')
    ->setMessage('Hi, this is test SMS')
    ->addRecipient('00421111222')
    /* added not required methods
    //->setGateway(SmsManager::GATEWAY_PREMIUM);
    //->setCallbackUrl("https://www.test.com/callback");
    */
    ->sendSms();

GET CREDIT INFORMATION:

$sms = new Stromaler\Biz123Sms\SmsManager();
$myCredit = $sms->setCredentials('myUsername','password')->getCredit();

VERIFY NUMBER:

$sms = new Stromaler\Biz123Sms\SmsManager();
$numberInfo = $sms->setCredentials('myUsername','password')->verifyNumber('00421111222');

The only dependency is CURL module in PHP.

Enjoy.

统计信息

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

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2015-08-30