2017 © Pedro Peláez
 

library 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.

image

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.

  • Wednesday, May 15, 2013
  • by cristobal
  • Repository
  • 2 Watchers
  • 2 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

PSWinCom Bundle

PSWinCom Bundle is a minimal php port/variant of the PSWINCom ruby gem library., (*1)

This library supports the minimal purpose of sending sms., (*2)

Usage

A simple example, (*3)

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., (*4)

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

And then run php bin/vendors install --reinstall, (*5)

Autoloading

Append the following to your app/autoload.php file to make sure the PSWinCom namespace gets registered., (*6)

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

The Versions

15/05 2013

dev-master

9999999-dev https://github.com/cristobal/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.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Cristobal Dabed

sms pswin

15/05 2013

v0.1

0.1.0.0 https://github.com/cristobal/pswincom-bundle

Easily parse / convert / write between Microsoft Excel XML / CSV / TSV / HTML / JSON / etc formats

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Cristobal Dabed

sms pswin