r/androiddev
•
u/tommy041212
•
Oct 23 '25
•
1
[Project] PHPInsideAndroid – Run PHP scripts natively inside an Android app
Hey everyone! 👋
I built an Android app that can run PHP scripts natively using NanoHTTPD + WebView, without requiring a remote server.
Key features:
- Full PHP support inside Android, including GET/POST handling
- Load local HTML, PHP files, CSS, JS
- WebView frontend supports JS, CSS, and alerts
- Great for testing PHP apps on the go or building offline mobile apps with PHP backend logic
GitHub: https://github.com/Tommy0412/PHPAndro
I’d love feedback on the implementation and suggestions for improvement! Also happy to answer questions about running PHP on Android.
View all comments
Show parent comment
1
u/tommy041212 Nov 01 '25
this is php and extensions build script i use, https://github.com/Tommy0412/php-ndk you will need to build xdebug extesnion place it inside assets/php/extensions and enable in php.ini but PHPAndro is intended to be used in production not in development, so i dont see point to have it.