承接 nativephp/mobile-system 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

nativephp/mobile-system

Composer 安装命令:

composer require nativephp/mobile-system

包简介

System-level operations for NativePHP Mobile

README 文档

README

System-level operations for NativePHP Mobile apps.

Overview

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

Installation

composer require nativephp/mobile-system

Usage

PHP (Livewire/Blade)

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)

import { System } from '#nativephp';

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

Methods

isIos(): bool

Returns true if the app is running on iOS.

isAndroid(): bool

Returns true if the app is running on Android.

isMobile(): bool

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

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

Toggles the device flashlight on/off.

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

MIT

统计信息

  • 总下载量: 6.76k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 0
  • Forks: 2
  • 开发语言: Kotlin

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-03

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固