pswincom/pswincom-bundle 问题修复 & 功能扩展

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

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

pswincom/pswincom-bundle

Composer 安装命令:

composer require pswincom/pswincom-bundle

包简介

PSWinCom Bundle is a minimal php port/variant of the PSWINCom ruby gem library. This library supports the minimal purpose of sending sms.

关键字:

README 文档

README

PSWinCom Bundle is a minimal php port/variant of the PSWINCom ruby gem library.

This library supports the minimal purpose of sending sms.

Usage

A simple example

use PSWinCom\PSWinCom; // Load PSWinCom 

// 1. Set options
$options = array();
$options['api_host'] = 'http://sms3.pswin.com/sms'; // set the host default is `http://sms.pswin.com/sms` 
$options['username'] = "your_username";
$options['password'] = "your_password";
$options['sender']   = "SenderName/PhoneNumber";

// 2. Create a new instance
$pswin = new PSWinCom($options); 

// 3. Send sms
$phone   = '4712345678';
$message = 'Hello World';
$pswin->sendSms($phone, $message);

Other global options are:

`debug_mode`: If set to true message will not be sent, default value false
`country_code`: The country code to prefix phone numbers with, if the phone number is not prefixed with a country code it will be append if set. There is no default coutry code set.

Using with Symfony2

Add the following to you deps file.

[PSWinCom]
    git=http://github.com/cristobal/pswincom-bundle
    target=pswincom

And then run php bin/vendors install --reinstall

Autoloading

Append the following to your app/autoload.php file to make sure the PSWinCom namespace gets registered.

$loader->registerNamespaces(array(			
	…
	'PSWinCom' => __DIR__.'/../vendor/pswincom/src/', // required to use the PSWinCom library
));

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2013-05-15

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固