PHP Classes

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 (7)   Blog (1)    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 61%Total: 758 This week: 1All time: 4,436 This week: 108Up
Version License PHP version Categories
termuxapi 1.0GNU General Publi...5PHP 5, System information, Wireless a..., A..., G..., C..., H...


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
Picture of Luis Martinez Ulloa
  Performance   Level  
Name: Luis Martinez Ulloa is available for providing paid consulting. Contact Luis Martinez Ulloa .
Classes: 12 packages by
Country: Peru Peru
Age: 51
All time rank: 4001 in Peru Peru
Week rank: 114 Up2 in Peru Peru Down
Innovation award
Innovation award
Nominee: 5x

  • 02clip04.jpg
  • 02clip04b.jpg
  • 03test05.png
  • 03test06.jpg
  • 03test07.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  
This week:1
All time:4,436
This week:108Up
User Ratings User Comments (2)
 All time
Great use of android features
6 years ago (Eric Wambugu)
Thats a very good class ;-)
6 years ago (Josť Filipe Lopes Santos)