projectmata/mobile-device-sensors

Device motion and proximity sensor plugin for NativePHP Mobile

Maintainers

Package info

github.com/jomarmata24/mobile-device-sensors

Language:Kotlin

Type:nativephp-plugin

pkg:composer/projectmata/mobile-device-sensors

Statistics

Installs: 1

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0.0 2026-04-25 04:03 UTC

This package is auto-updated.

Last update: 2026-04-25 04:04:34 UTC


README

Latest Version Total Downloads License

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.