newway/turbo-sms 问题修复 & 功能扩展

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

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

newway/turbo-sms

最新稳定版本:1.1

Composer 安装命令:

composer require newway/turbo-sms

包简介

Package for TurboSMS service(http://turbosms.ua/)

README 文档

README

This package still in beta. The main problem - SOAP API from TurboSMS (be realists - it's awful). I've contact with TurboSMS's support - lets see what they will do with my request...

Installation

Require this package in your composer.json:

"newway/turbo-sms": "dev-master"

And add the ServiceProvider to the providers array in config/app.php

'Newway\TurboSms\ServiceProvider',

Publish config using artisan CLI (if you want to overwrite default config).

php artisan vendor:publish --tag="config"

You can register the facade in the aliases key of your config/app.php file.

'aliases' => array(
    'TurboSms'  => 'Newway\TurboSms\Facade',
)

Package config

	return array(

        /*
        |--------------------------------------------------------------------------
        | URL
        |--------------------------------------------------------------------------
        |
        | URL for the SOAP API
        |
        */

            'url'      => 'http://turbosms.in.ua/api/wsdl.html',
        /*
        |--------------------------------------------------------------------------
        | Credentials for auth
        |--------------------------------------------------------------------------
        */

            'auth' => [

                    'login'    => env('TURBO_SMS_LOGIN'),
                    'password' => env('TURBO_SMS_PASSWORD'),
            ],

        /*
        |--------------------------------------------------------------------------
        | Sender name
        |--------------------------------------------------------------------------
        */

            'sender'   => env('TURBO_SMS_SENDER'),


    );

##Usage

try {
	$balance = Newway\TurboSms\Facade::getBalance();
	print_r($balance);

	$message_id = Newway\TurboSms\Facade::send('Test message', '+38099999999');
    print_r($message_id);

    $status = Newway\TurboSms\Facade::getStatus($message_id);
    print_r($status);
} catch (Newway\TurboSms\Exceptions\TurboSmsException $e) {}

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-03-28