abnermouke/supports
  • 前言
  • 框架使用
    • Laravel
    • Hyperf
  • 目录结构
  • 常用数据 data
  • 辅助方法 helpers
  • 主要功能 src
    • 辅助类 Assists
      • 文件辅助类 File
      • 框架辅助类 Framework
      • 数组辅助类 Arr
      • 路径辅助类 Path
      • 字符串辅助类
    • 功能藏库 Library
      • 违禁词筛选 SensitiveFilterLibrary
      • 常用验证 ValidateLibrary
      • 辅助方法 HelperLibrary
      • 逻辑状态码 CodeLibrary
      • 设备判断 DeviceLibrary
      • 虚假UA FakeUserAgentLibrary
      • 日志记录 LoggerLibrary
      • 图片处理 PictureLibrary
      • 二维码处理 QrLibrary
      • 加解密
        • Aes加解密 AesLibrary
        • 验签加解密 SignLibrary
Powered by GitBook
On this page
  1. 主要功能 src
  2. 功能藏库 Library

设备判断 DeviceLibrary

快捷判断当前访问设备类型

方法

调用方法

功能介绍

mobile

Abnermouke\Supports\Library\DeviceLibrary::mobile($ua)

判断是否为手机访问

pc

Abnermouke\Supports\Library\DeviceLibrary::pc($ua)

判断是否为PC访问

windows

Abnermouke\Supports\Library\DeviceLibrary::windows($ua)

判断是否为Windows访问

unix

Abnermouke\Supports\Library\DeviceLibrary::unix($ua)

判断是否为unix设备访问

linux

Abnermouke\Supports\Library\DeviceLibrary::linux($ua)

判断是否为linux设备访问

mac

Abnermouke\Supports\Library\DeviceLibrary::mac($ua)

判断是否为mac设备访问

ipod

Abnermouke\Supports\Library\DeviceLibrary::ipod($ua)

判断是否为ipod访问

ipad

Abnermouke\Supports\Library\DeviceLibrary::ipad($ua)

判断是否为ipad访问

iphone

Abnermouke\Supports\Library\DeviceLibrary::iphone($ua)

判断是否为ipone设备访问

android

Abnermouke\Supports\Library\DeviceLibrary::android($ua)

判断是否为安卓设备访问

Previous逻辑状态码 CodeLibraryNext虚假UA FakeUserAgentLibrary

Last updated 2 years ago