定制 nidear1024/useragentparsed 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

nidear1024/useragentparsed

最新稳定版本:v1.0.1

Composer 安装命令:

composer require nidear1024/useragentparsed

包简介

Analysis of the useragent in the request head

README 文档

README

Analysis of the useragent in the request head

Requirements

  • PHP >= 7.0.0

Installation

This package requires PHP 7+

First, install useragentparsed.

composer require nidear1024/useragentparsed

Then run these commands to test:

cd useragentparsed
php ./test/index.php

Usage

include "./vendor/autoload.php";


$str = "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:106.0) Gecko/20100101 Firefox/106.0";
$str = getallheaders()['User-Agent'];

$obj = new \Common\Tools\UserAgentParsed();
echo "<pre>";
var_dump($obj->getBrowserInfo($str));
var_dump($obj->getSystemOS($str));
var_dump($obj->checkSpider($str));
var_dump($obj->getMachineType($str));
var_dump($obj->getAllInfo($str));
die;

统计信息

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

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-03-14