PHP Termux API: Control Android device using Termux application

Recommend this page to a friend!
  Info   View files Example   Screenshots Screenshots   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum (6)   Blog (1)    
Last Updated Ratings Unique User Downloads Download Rankings
2017-02-14 (3 years ago) RSS 2.0 feedStarStarStar 59%Total: 654 All time: 4,833 This week: 306Up
Version License PHP version Categories
termuxapi 1.0GNU General Publi...5PHP 5, System information, Wireless a..., A..., G..., C..., H...
Description Author

This class can control Android device using Termux application.

It can execute the termux terminal emulator application from the command line and run several types of commands to control the several aspects of an Android mobile phone or table. Currently it can:

- Check the battery status
- Get the camera details
- Take a picture
- Copy text from and to the clipboard
- Retrieve user contact list
- Download files from a given URL
- Get the device location from the GPS or other device
- Send notifications to the device user
- Open URLs in the device default browser
- Share content file
- Send SMS message
- Get received SMS messages
- Get the phone information
- Show an Android toast notification
- Get the list of TTS (Text to Speach) devices
- Play text as speech
- Vibrate
- Scan WiFi devices
- Get the WiFi connection details

Innovation Award
PHP Programming Innovation award nominee
February 2017
Number 2


Prize: One big elePHPant Plush Mascott
Termux is a Android application that allows running applications from a Linux shell. PHP can be run from Termux too.

This class provides a wrapper to access to services provides by the Termux API app to access and control several aspects of an Android device.

Manuel Lemos
  Performance   Level  
Name: Luis Martinez Ulloa <contact>
Classes: 11 packages by
Country: Peru Peru
Innovation award
Innovation award
Nominee: 4x

Screenshots  
  • 03test07.jpg
  • 03test06.jpg
  • 03test05.png
  • 02clip04b.jpg
  • 02clip04.jpg
  Files folder image Files  
File Role Description
Accessible without login Plain text file clipshow.php Example Clipboard Example
Accessible without login Plain text file location.php Example Location Example
Plain text file termuxapi.php Class The class
Accessible without login Plain text file test.php Example Web test all methods

 Version Control Unique User Downloads Download Rankings  
 0%
Total:654
This week:0
All time:4,833
This week:306Up
User Ratings User Comments (2)
 All time
Utility:87%StarStarStarStarStar
Consistency:83%StarStarStarStarStar
Documentation:-
Examples:75%StarStarStarStar
Tests:-
Videos:-
Overall:59%StarStarStar
Rank:1397
 
Great use of android features
3 years ago (Eric Wambugu)
65%StarStarStarStar
Thats a very good class ;-)
3 years ago (José Filipe Lopes Santos)
70%StarStarStarStar
 

For more information send a message to info at phpclasses dot org.