2017 © Pedro Peláez
 

library agent

Desktop/mobile user agent parser with support for ThinkPHP 5

image

jliu/agent

Desktop/mobile user agent parser with support for ThinkPHP 5

  • Thursday, February 16, 2017
  • by liujin0506
  • Repository
  • 1 Watchers
  • 1 Stars
  • 16 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

agent

判断访问信息, (*1)

安装

composer require jliu/agent, (*2)

使用

  1. 得到agent完整类型信息
\jliu\agent\Agent::getDeviceInfo();
  1. 浏览器类型
\jliu\agent\Agent::browserType();
  1. 是移动设备访问
\jliu\agent\Agent::isMobile();
  1. 检查是否在微信中打开
\jliu\agent\Agent::isMicroMessage();

The Versions

16/02 2017

dev-master

9999999-dev

Desktop/mobile user agent parser with support for ThinkPHP 5

  Sources   Download

The Requires

  • php >=5.3.0

 

by Liu Jing

16/02 2017

v1.3

1.3.0.0

Desktop/mobile user agent parser with support for ThinkPHP 5

  Sources   Download

The Requires

  • php >=5.3.0

 

by Liu Jing

16/02 2017

v1.2

1.2.0.0

Agent for PHP

  Sources   Download

The Requires

  • php >=5.3.0

 

by Liu Jing

16/02 2017

v1.1

1.1.0.0

Agent for PHP

  Sources   Download

The Requires

  • php >=5.3.0

 

by Liu Jing

16/02 2017

v1.0

1.0.0.0

Agent for PHP

  Sources   Download

The Requires

  • php >=5.3.0

 

by Liu Jing