5
0
mirror of https://github.com/cwinfo/envayasms.git synced 2024-12-04 20:45:32 +00:00
envayasms/server/php
2011-09-18 15:29:30 -07:00
..
example remove test action to simplify server implementation; add icons from http://www.androidicons.com/freebies.php 2011-09-12 18:16:44 -07:00
KalSMS.php avoid exceeding Android limit of 100 outgoing SMS/app/hour; allow effectively increasing limit via expansion packs; revert Sms -> sms in XML response 2011-09-18 15:29:30 -07:00
README.txt fix comments for php server example 2011-09-12 17:47:56 -07:00

PHP server library for KalSMS, with example implementation

The KalSMS.php library is intended to be used as part of a PHP application 
running on an HTTP server that receives incoming SMS messages from, and sends 
outgoing SMS messages to, an Android phone running KalSMS.

To run the example implementation, the example/www/ directory should be made available 
via a web server running PHP (e.g. Apache). You can also use the included standalone 
PHP web server, by running the following commands:
    git submodule init
    php server.php
    
example/config.php contains the list of phone numbers and passwords for phones running KalSMS.

On a phone running KalSMS, go to Menu -> Settings and enter:
    * Server URL: The URL to example/www/index.php. 
        If you're using server.php, this will be http://<your_ip_address>:8002/
    * Your phone number: One of the phone numbers listed in example/config.php
    * Password: The corresponding password in example/config.php

To send an outgoing SMS, use 
    php example/send_sms.php

See KalSMS.php and example/www/index.php