projectmata / mobile-device-sensors
Device motion and proximity sensor plugin for NativePHP Mobile
Package info
github.com/jomarmata24/mobile-device-sensors
Language:Kotlin
Type:nativephp-plugin
pkg:composer/projectmata/mobile-device-sensors
v1.0.0
2026-04-25 04:03 UTC
Requires
- php: ^8.1
README
Local NativePHP plugin package for:
- motion snapshot detection
- proximity sensor availability
- simple moving/not-moving inference
Bridge methods:
window.NativePHP.DeviceSensors.GetSnapshot()window.NativePHP.DeviceSensors.IsProximityAvailable()window.NativePHP.DeviceSensors.RequestMotionPermission()
Laravel facade / manager:
Projectmata\MobileDeviceSensors\Facades\DeviceSensors
Notes:
- Movement is inferred from accelerometer and gyroscope magnitudes.
- Proximity support depends on the device hardware.
- This package only scaffolds sensor access. App-level tracking logic should be added separately.