2011-09-22 23:16:46 +00:00
|
|
|
PHP server library for EnvayaSMS, with example implementation
|
2011-09-12 23:53:38 +00:00
|
|
|
|
2011-09-22 23:16:46 +00:00
|
|
|
The EnvayaSMS.php library is intended to be used as part of a PHP application
|
2011-09-12 23:53:38 +00:00
|
|
|
running on an HTTP server that receives incoming SMS messages from, and sends
|
2011-09-22 23:16:46 +00:00
|
|
|
outgoing SMS messages to, an Android phone running EnvayaSMS.
|
2011-09-12 23:53:38 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2011-09-22 23:16:46 +00:00
|
|
|
example/config.php contains the list of phone numbers and passwords for phones running EnvayaSMS.
|
2011-09-12 23:53:38 +00:00
|
|
|
|
2011-09-22 23:16:46 +00:00
|
|
|
On a phone running EnvayaSMS, go to Menu -> Settings and enter:
|
2011-09-12 23:53:38 +00:00
|
|
|
* 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
|
|
|
|
|
2011-09-22 23:16:46 +00:00
|
|
|
See EnvayaSMS.php and example/www/index.php
|