Follow-up on the PHP-server-inside-Android experiment. Today I ran capability probes on the real device to see what's actually viable vs what only exists on paper.
The good news first:
📡UDP broadcast works BOTH ways in pure PHP, the phone emits and receives LAN beacons, so AirDrop style discovery is real with zero plugins.
📂 File picker for any file type, share sheet, clipboard, real disk stats, all verified on device.
Then the weird part...
🔳 I wanted
endroid/qr-code for the QR and it just... wasn't there. Turns out the packager strips it from the APK, the autoloader knows the class, the file doesn't exist 🤯 The fix ended up better anyway, bacon-qr-code hands me the matrix and I draw it as a 25×25 grid of native UI components. A QR code made of Compose views, zero images.
Also learned the hard way that PHP facades can fail silently. Share::url dispatched with no error and nothing happened, the Kotlin handler lives in a separate plugin.
"The facade exists" ≠ "it works" 💀
The whole AirDrop clone mock is now feasible. Repo is public with a Docker CI pipeline: github.com/Petox03/AirPHP
#php #android #nativephpGitHubGitHub - Petox03/AirPHP: An AirDrop-style PoC built with NativePHPAn AirDrop-style PoC built with NativePHP. Contribute to Petox03/AirPHP development by creating an account on GitHub.
commit a6638b1