Network connectivity status monitoring for NativePHP Mobile — connection type, metered status, and Low Data Mode detection.
- Network connectivity status detection
- Connection type identification (wifi, cellular, ethernet, unknown)
- Metered connection detection
- Low Data Mode detection (iOS)
- PHP (Livewire/Blade) and JavaScript (Vue/React/Inertia) APIs
composer require nativephp/mobile-network
| Platform |
Minimum Version |
| NativePHP |
^3.0 |
| iOS |
18.2+ |
| Android |
API 26+ |
| Property |
Type |
Description |
connected |
boolean |
Whether device is online |
type |
string |
wifi / cellular / ethernet / unknown |
isExpensive |
boolean |
Cellular or hotspot connection |
isConstrained |
boolean |
Low Data Mode active (iOS) |