PHPackages                             thefunpower/device - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. thefunpower/device

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

thefunpower/device
==================

device

v2.0.0(2y ago)013Apache-2.0PHP

Since Jan 16Pushed 2y agoCompare

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

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

device
======

[](#device)

获取设备信息

安装

```
composer require thefunpower/device

```

使用

```
get_device_info()

```

输出

```
Array
(
    [client] => Array
        (
            [type] => browser
            [name] => Chrome
            [short_name] => CH
            [version] => 120.0.0.0
            [engine] => Blink
            [engine_version] => 120.0.0.0
            [family] => Chrome
        )

    [os] => Array
        (
            [name] => Windows
            [short_name] => WIN
            [version] => 10
            [platform] => x64
            [family] => Windows
        )

    [device] => desktop
    [brand] =>
    [model] =>
    [key] => Windows10 x64 Chrome
    [uni] => Windows10 x64 Chrome desktop 127.0.0.1
)

```

License
-------

[](#license)

[Apache License 2.0](LICENSE)

本项目包含的第三方源码和二进制文件之版权信息另行标注。

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

852d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c6f09836c59d691e60dd442ee29a2b6673d2c8c319b248aedcde7103f17201e1?d=identicon)[sunkangchina2022](/maintainers/sunkangchina2022)

---

Top Contributors

[![sunkangchina](https://avatars.githubusercontent.com/u/66815206?v=4)](https://github.com/sunkangchina "sunkangchina (1 commits)")

---

Tags

php

### Embed Badge

![Health badge](/badges/thefunpower-device/health.svg)

```
[![Health](https://phpackages.com/badges/thefunpower-device/health.svg)](https://phpackages.com/packages/thefunpower-device)
```

###  Alternatives

[imanghafoori/laravel-anypass

A minimal yet powerful package to help you in development.

21421.6k](/packages/imanghafoori-laravel-anypass)

PHPackages © 2026

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