5
0
mirror of https://github.com/cwinfo/envayasms.git synced 2024-11-08 18:00:27 +00:00
envayasms/server/php
2011-09-27 20:23:36 -07:00
..
example update php server library and example 2011-09-27 11:30:49 -07:00
EnvayaSMS.php don't request delivery reports but leave option open in future; fix bug with encoding of apostrophe by php library 2011-09-27 20:23:36 -07:00
README.txt rename to EnvayaSMS; add icon 2011-09-22 16:16:46 -07:00

PHP server library for EnvayaSMS, with example implementation

The EnvayaSMS.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 EnvayaSMS.

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

On a phone running EnvayaSMS, 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 EnvayaSMS.php and example/www/index.php