PHPackages                             nativephp/mobile-system - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. nativephp/mobile-system

ActiveNativephp-plugin

nativephp/mobile-system
=======================

System-level operations for NativePHP Mobile

1.0.2(1mo ago)21.8k↑136.7%1MITKotlinPHP ^8.2

Since Jan 19Pushed 1mo agoCompare

[ Source](https://github.com/NativePHP/mobile-system)[ Packagist](https://packagist.org/packages/nativephp/mobile-system)[ RSS](/packages/nativephp-mobile-system/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (3)Versions (4)Used By (0)

System Plugin for NativePHP Mobile
==================================

[](#system-plugin-for-nativephp-mobile)

System-level operations for NativePHP Mobile apps.

Overview
--------

[](#overview)

The System API provides access to system-level functionality like platform detection and opening the app's settings page.

Installation
------------

[](#installation)

```
composer require nativephp/mobile-system
```

Usage
-----

[](#usage)

### PHP (Livewire/Blade)

[](#php-livewireblade)

```
use Native\Mobile\Facades\System;

// Platform detection
System::isIos();       // true on iOS
System::isAndroid();   // true on Android
System::isMobile();    // true on either platform

// Open app settings (useful when user denied permissions)
System::appSettings();

// Toggle the flashlight
System::flashlight();
```

### JavaScript (Vue/React/Inertia)

[](#javascript-vuereactinertia)

```
import { System } from '#nativephp';

// Open app settings
await System.openAppSettings();
```

Methods
-------

[](#methods)

### `isIos(): bool`

[](#isios-bool)

Returns `true` if the app is running on iOS.

### `isAndroid(): bool`

[](#isandroid-bool)

Returns `true` if the app is running on Android.

### `isMobile(): bool`

[](#ismobile-bool)

Returns `true` if the app is running on iOS or Android.

### `appSettings(): void`

[](#appsettings-void)

Opens the app's settings screen in the device settings. This is useful when a user has denied a permission and you want to direct them to the settings to grant it.

### `flashlight(): void`

[](#flashlight-void)

Toggles the device flashlight on/off.

Use Cases
---------

[](#use-cases)

- Detect the current platform to conditionally render UI
- Direct users to grant permissions after initial denial
- Allow users to change notification preferences

License
-------

[](#license)

MIT

###  Health Score

46

—

FairBetter than 93% of packages

Maintenance88

Actively maintained with recent releases

Popularity26

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~30 days

Total

3

Last Release

59d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9ab43d3432a80f0f41fe7015280f6024ff13fe8c2306cf114a1fbc91a4cd6f35?d=identicon)[simonhamp](/maintainers/simonhamp)

![](https://www.gravatar.com/avatar/16cc4d562d3f6f302901f1c65eb3ce819c0fb24ab2616241c605126102812ca4?d=identicon)[shanerbaner82](/maintainers/shanerbaner82)

---

Top Contributors

[![shanerbaner82](https://avatars.githubusercontent.com/u/5580860?v=4)](https://github.com/shanerbaner82 "shanerbaner82 (9 commits)")[![simonhamp](https://avatars.githubusercontent.com/u/31628?v=4)](https://github.com/simonhamp "simonhamp (3 commits)")

---

Tags

nativephpnativephp-mobilenativephp-plugin

### Embed Badge

![Health badge](/badges/nativephp-mobile-system/health.svg)

```
[![Health](https://phpackages.com/badges/nativephp-mobile-system/health.svg)](https://phpackages.com/packages/nativephp-mobile-system)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
