Added README, HISTORY and LICENSE files
This commit is contained in:
parent
ab8c686809
commit
129dffd085
5
HISTORY
Normal file
5
HISTORY
Normal file
@ -0,0 +1,5 @@
|
||||
0.1 - 2014-07-31
|
||||
First relase of the class
|
||||
|
||||
|
||||
Note: For more history information, please see the git log
|
15
LICENSE
Normal file
15
LICENSE
Normal file
@ -0,0 +1,15 @@
|
||||
Copyright (C) 2014 Jack-Benny Persson <jack-benny@cyberinfo.se>
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
41
README.md
Normal file
41
README.md
Normal file
@ -0,0 +1,41 @@
|
||||
# cellsyntClass #
|
||||
This is a PHP class for sending SMS messages through Cellsynt's
|
||||
(http://www.cellsynt.se) API. It's made to be as easy and straight forward as
|
||||
possible, so anyone can implement it in their own applications.
|
||||
|
||||
## Usage ##
|
||||
Start with including the file cellsyntClass.php in your application. Next off
|
||||
create a new object of the class 'Cellsynt' with appropriate parameters,
|
||||
username, password etc. Then, to actually send an SMS call the objects function
|
||||
call 'sendSMS' with the parameters phone number, message and optionally expiry
|
||||
date. See the quick example below.
|
||||
|
||||
<?php
|
||||
require ("cellsyntClass/cellsyntClass.php");
|
||||
|
||||
$myCellsynt = new Cellsynt("myuser", "sEcReT", "alpha", "Test");
|
||||
print $myCellsynt->sendSMS("0046701234567", "This is just a test SMS!");
|
||||
?>
|
||||
|
||||
### List of avaliable parameters ###
|
||||
Parameters for the class in order:
|
||||
|
||||
* username (required)
|
||||
* password (required)
|
||||
* originator type (optional, default is 'alpha')
|
||||
* originator (optional, default is 'Cellsynt')
|
||||
* concatenated (optional, default is maximum, 6)
|
||||
* charset (optional, default is UTF-8)
|
||||
* type (optional, default is text (only text and flash works with this class))
|
||||
|
||||
Parameters for the sendSMS function in order:
|
||||
|
||||
* phone number (required)
|
||||
* message (required)
|
||||
* expiry date (optional, Unix Timestamp when message should expire)
|
||||
|
||||
## Copyright ##
|
||||
This class is written by Jack-Benny Persson and released under GNU GPL
|
||||
version 2.
|
||||
|
||||
Note that I am not in any way affiliated with Cellsynt.
|
@ -19,6 +19,8 @@
|
||||
|
||||
|
||||
/*
|
||||
Version 0.1
|
||||
|
||||
Usage example:
|
||||
$MySMS = new Cellsynt("myuser", "mYpaSS", "alpha", "Test");
|
||||
print $MySMS->sendSMS("0046701234567", "This is my SMS!");
|
Loading…
x
Reference in New Issue
Block a user