Twilio “Geo-text” Plug-In (a PHP Uber-style Geotracker Plug-In) by data_ninja.
WHAT IS “GEO-TEXTING”?
(def) “Geo-texting” – the act of inviting folks by means of textual content to proportion their location realtime with each and every different on a non-public geomap…uberstyle. Anyone with a smartphone and will textual content to the geo-text telephone quantity can play dispatcher and invite folks to proportion a geomap. To arrange your individual geo-text your individual surroundings, you’ll want to host this plug-in, my newest script PHP Uber-style Geotracking and Twilio’s SMS “texting” services and products (www.twilio.com). You can test it out in my demo surroundings right here. Just textual content instructions (under) to 415-360-0886 – FREE!.
This Twilio “Geo-text” plug-in is an add-on to my PHP Uber-style Geotracking script that permits any person with get entry to for your Twilio telephone quantity to ask folks by means of textual content to proportion their location with others uber-style on a non-public geomap. In addition the script options dispatcher capability now not discovered within the authentic geotracking script. This capability comprises managing more than one geomaps, including/deleting geotrackees, renaming maps and geotrackees, pinging geotrackees to replace their location, all from a smartphone the use of SMS texting.
The script is simple to put in – simply unzip contents – 1 report – into the <root>/php/sms folder of your authentic PHP Uber-style Geotracking instalation. This calls for a Twilio account to ship and procedure SMS texts. Configuration directions to hyperlink your Twilio telephone quantity to this plug-in seem under.
NOTE: THIS SCRIPT IS AN ADD-ON AND REQUIRES THE PURCHASE OF MY PHP UBER-STYLE GEOTRACKING SCRIPT. THIS ALSO REQUIRES SIGNING UP FOR A PAID TWILIO ACCOUNT.
This script comprises PHP code that CAN BE USED BY PHP DEVELOPERS AS A TEMPLATE for the use of SMS TEXTING (the use of Twilio) because the consumer interface for his or her instrument/internet programs. For PHP builders who’ve now not explored SMS texting as a consumer interface in your instrument (as I’ve completed right here), it’s value exploring. Texting is one thing we all know how you can do (younger, outdated and in between) and cuts finding out curve of the use of your instrument. (see “Overview of PHP Code” segment under for the way code is structured).
WHAT DOES THIS TWILIO “GEO-TEXT” PLUG-IN DO?
Using the plug-in is as simple as texting a listing of geotrackees to the script’s twilio telephone quantity (or for demo – 415-360-0886). Click on “Live Demo” hyperlink above for extra detailed directions.
- Install script/plug-in. For demo, textual content to 415-360-0886.
- Simply “text” an area or comma separated checklist of geotrackee electronic mail addresses or sensible telephone numbers to ask to a non-public geomap. The script will textual content you a call for participation hyperlink (it routinely comprises map proprietor as a geotrackee in each map. It may even textual content you affirmation which geotrackees had been invited and which of them didn’t (didn’t move validation).
- To upload extra geotrackees, proceed to textual content emaill deal with and call numbers to the plug-in telephone quantity in step 1.
OTHER DISPATCHER FEATURES
Here is the checklist of all of the dispatcher options constructed into this script that may be finished by texting instructions for your Twilio telephone quantity for your smartphone. Click right here for screenshots of capability under.
- LIST ALL YOUR MAPS – Text “list-maps” or “lm” to the twilio quantity to get a numbered checklist of maps you personal.
- ADD A NEW MAP – Text “new-map” or “nm” to the twilio quantity
- SWITCH ACTIVE MAP – Text “switch-map” or “sm” after which the map quantity (from “list-maps” checklist) to the twilio quantity (e.g. “sm 3”)
- RENAME MAP – Give your map a friendlier title. Text “rename-map” or “rm”, adopted by the map quantity after which the pleasant title you need to offer the map. (e.g. “rm 2 My Test Map”)
- DELETING A MAP – Text “delete-map” or “dm” after which the map quantity you need to delete adopted by the map quantity you need to delete.
- ADDING A GEOTRACKEE – Text “add-geotrackee” or “ag” after which a comma or house separated checklist of geotrackee emails and call numbers. This is non-compulsory, you’ll be able to simply textual content new emails and call numbers. (e.g. “ag firstname.lastname@example.org email@example.com 4153333333”)
- LIST ALL GEOTRACKEES OF ACTIVE MAP – Text “list-geotrackees” or “lg” to get a numbered checklist of geotrackees within the energetic map. (e.g. “ag firstname.lastname@example.org email@example.com 4153333333”)
- DELETING A GEOTRACKEE – Text “delete-geotrackee” or “dg” and the geotrackee’s quantity from “list-geotrackee” checklist. (e.g. “dg 2”)
- RENAME A GEOTRACKEE – Text “rename-geotrackee” or “rg”, the geotrackee’s quantity from “list-geotrackee” checklist and the geotrackee’s nickname. (e.g. “rg 2 Lucky Louie”)
- PING ALL THE GEOTRACKEES IN THE ACTIVE MAP – Text “ping-geotrackee” or “pg”, then the phrase “all”. (e.g. “pg all”)
- PING AN INDIVIDUAL GEOTRACKEE IN THE ACTIVE MAP – Text “ping-geotrackee” or “pg”, then the geotrackee’s quantity you need to ping. (e.g. “pg 3”)
- GETTING HELP – Text “help-me” or ”?” to clean all of the maps and geotrackees and reset.
- RESETTING – Text “clear-all” or “ca” to clean all of the maps and geotrackees and reset.
HOW DO I INSTALL THIS PLUG-IN?
- If you haven’t completed so, acquire the “PHP Uber-style Geotracker” script from codecanyon.internet
- If you haven’t completed so, set up the script (see ‘Installation Instructions’ segment within the script’s documentation)
- Purchase this plug-in- Twilio “Geo-Text” Plug-In
- Unzip the contents of the zip report into the next folder to your set up from step 1 and a pair of (http://<domain root>/php/sms/)
- Go to Twilio.com and join your account (join the SMS product – be sure you acquire a twilio telephone quantity in your customers to textual content to)
- Click on ‘Dashboard’ hyperlink to show Console Dashboard.
- Click on ‘Programmable SMS’ hyperlink underneath the All Twilio Products segment on Console Dashboard.
- Click on ‘Messaging Services’ hyperlink at the Programmable SMS Dashbaord web page
- Click on ’+’ signal at the Messaging Services web page
- Enter ‘geotracker’ because the pleasant title and ‘Notifications, 2-Way’ because the use case
- Check the ‘Process Inbound Messages’ take a look at field and input https://<your area>/php/sms/obtain.php and save Configure web page
LIST OF TEXT COMMANDS
See desk under for checklist of instructions. Examples under are “text” instructions which are despatched to the Twilio telephone quantity you place up all over set up (or use the demo telephone quantity: 415-360-0886).
|LIST OF COMMANDS||DESCRIPTION|
|help-me or hm||get assist or checklist of instructions
textual content: “help-me”
|clear-all or ca||clean all my maps and geotrackees
textual content: “clear-all” or “ca”
|new-map or nm||create new map
textual content: “new-map” or “nm”
|list-maps or lm||checklist all my maps
textual content: “list-maps” or “lm”
|rename-map or rm||rename current map
textual content: “rm 2 My Map”
|switch-map or sm||swap energetic map
textual content: “switch-map 3”
|delete-map or dm||textual content: “delete-map 2”|
|add-geotrackees or ag||upload geotrackees to the energetic map (default)
textual content: “ag firstname.lastname@example.org 4154444444”
|list-geotrackees or lg||get checklist of geotrackees in energetic map
textual content: “list-geotrackees”
|delete-geotrackee or dg||delete geotrackee
textual content: “dg 4”
|rename-geotrackee or rg||create nickname for a geotrackee
textual content: “rename-geotrackee 2 Cool Dude”
|ping-geotrackees or pg||ping all geotrackee to replace location
textual content: “pg 1,2,3” or “pg all”
|or just kind in a comma separated (”,”) checklist of electronic mail addresses and call numbers at once to ask folks to an energetic geotracking map|
OVERVIEW OF PHP CODE
With this script comes a “template” PHP magnificence that can be utilized as a kick off point for PHP builders to create different conversational Twilio SMS programs. See under documentation of this PHP magnificence.
| FUTURE IMPROVEMENTS – FROM THE NINJA
Not certain if there’s a lot more so as to add to this script. I might wish to
upload some geotrackee viewing restrictions with the intention to differentiate
between geotrackee’s that may see everybody’s location, with
geotrackees that may simplest see their very own and in addition hiding proprietor’s
I do plan to create a dispatcher module that makes use of an ordinary desktop consumer interface for severe dispatching. But now not certain of the timing of this. It will most likely leverage my different scripts together with PHP Dashboards, and so forth. Let me know what you suppose by commenting in this script.
AUTHOR’S NOTE ON SCRIPT: see weblog submit – Twilio “Geo-Text” Plug-In
DOCUMENTATION: see weblog submit – Author’s Note: Twilio “Geo-Text” Plug-In
REMINDER ON EXTENDED LICENSES: Just a pleasant reminder that there are two other license ranges at codecanyon.internet. The common license is for unmarried FREE consumer use. If you will have more than one purchasers or charging purchasers for capability from this script, then a longer license is the proper degree. It’s simplest honest as I do spend a large number of time tuning those scripts. And extra gross sales/revenues way I will code extra options and it has come to my consideration that many customers are the use of my script for business (for pay) functions with simply the common license. Thanks for you beef up. Click for extra main points – Regular vs. Extended License Comparison
- A PHP/MySQL supported webserver is needed for jsfiddle options (preview, proportion, save) and render script choices #three and #four – click on right here for phpinfo for PHP/MySQL variations and configuration choices of the server serving up the demo. IMPORTANT: be sure you evaluate with phpinfo of your set up. Many PHP/MySQL mistakes stem from configuration choices of purchaser php server circumstances.
- You will desire a PAID Twilio account and call quantity
(See set up directions in this web page to peer how to enroll and set up)
VERSION HISTORY – Twilio “Geo-text” Plug-In
- VERSION 1.zero (10/02/2017) – Initial release model
- Twilio SMS texting consumer interface for the PHP Uber-style Geotracker script.
- Dispatcher options now not discovered within the authentic geotracker script. See ’’List of Text Commands’ segment in this web page for the checklist of options integrated on this preliminary model.
My Other Scripts at Codecanyon:
– (BRAND NEW!!!) PHP Daytrader’s Candlestick Pattern Hunter
– PHP Uber-style GeoTracker
– PHP Dashboard v4.zero Collaborative Social Dashboards
– PHP Dashboard v2.7 – Responsive Carousels/D3js/Highcharts/Highmaps/MySQL
– PHP Dashboard v3.zero – For Mobile Devices
– HTML5 Cloud Dashboard Designer
– HTML5 Streetmaps
– PHP Streetmaps