Coder Social home page Coder Social logo

terminalinfo's Introduction

TerminalInfo

一个简单的分析WEB客户端信息的类

此项目期望通过简单的方法获取WEB客户端一下信息:

  • 1、通过HTTP_USER_AGENT信息获取客户端的语言、客户端类型、客户端操作系统、HTTP_ACCEPT_LANGUAGE
  • 2、通过HTTP_ACCEPT_LANGUAGE信息获取客户端类型、客户端操作系统、网络类型等信息。
  • 3、通过搜集的IP信息查询API综合分析客户端所在国家、省、城市信息。

使用方法:

  • 1、获取简化数据方法:TerminalInfo::getArowserInfo([type]) $type默认为arr数组形式返回数据,json为sjon形式返回数据
  • 1、获取全中文数据方法:TerminalInfo::getArowserPro([type]) $type默认为arr数组形式返回数据,json为sjon形式返回数据

注意:

  • 获取的数据的准确性需要在客户端没有存在刻意欺骗行为的前提下才能有一定的保证。
  • IP地址信息查询API,需要注意百度的API需要申请、淘宝的API有请求限制(比较准确的是百度API)、**移动IP如果在异地漫游会比较准确,电信联通好查询到归属地城市数据。

terminalinfo's People

Contributors

pizepei avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.