PHPackages                             jliu/agent - 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. jliu/agent

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

jliu/agent
==========

Desktop/mobile user agent parser with support for ThinkPHP 5

v1.3(9y ago)129PHPPHP &gt;=5.3.0

Since Feb 16Pushed 9y ago1 watchersCompare

[ Source](https://github.com/liujin0506/Agent)[ Packagist](https://packagist.org/packages/jliu/agent)[ RSS](/packages/jliu-agent/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (4)DependenciesVersions (5)Used By (0)

agent
=====

[](#agent)

> 判断访问信息

安装
--

[](#安装)

> composer require jliu/agent

\##使用

1. 得到agent完整类型信息

```
\jliu\agent\Agent::getDeviceInfo();
```

2. 浏览器类型

```
\jliu\agent\Agent::browserType();
```

3. 是移动设备访问

```
\jliu\agent\Agent::isMobile();
```

4. 检查是否在微信中打开

```
\jliu\agent\Agent::isMicroMessage();
```

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

Established project with proven stability

 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

Every ~0 days

Total

4

Last Release

3422d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7478813?v=4)[LiuJing](/maintainers/liujin0506)[@liujin0506](https://github.com/liujin0506)

---

Top Contributors

[![liujin0506](https://avatars.githubusercontent.com/u/7478813?v=4)](https://github.com/liujin0506 "liujin0506 (5 commits)")

---

Tags

php

### Embed Badge

![Health badge](/badges/jliu-agent/health.svg)

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

###  Alternatives

[swoole/ide-helper

IDE help files for Swoole.

5277.0M1.1k](/packages/swoole-ide-helper)[arcanedev/seo-helper

SEO Helper is a framework agnostic package that provides tools &amp; helpers for SEO (Laravel supported).

331469.8k4](/packages/arcanedev-seo-helper)[stillat/statamic-site-essentials

111.5k](/packages/stillat-statamic-site-essentials)

PHPackages © 2026

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