2017 © Pedro Peláez
 

library wechat-agent

Detect wechat version and network type information

image

khsing/wechat-agent

Detect wechat version and network type information

  • Wednesday, February 28, 2018
  • by khsing
  • Repository
  • 1 Watchers
  • 0 Stars
  • 648 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 109 % Grown

The README.md

Intro

Detect wechat user agent and compare version, (*1)

This package based on jenssegers/agent, so that all functions are compatible., (*2)

Usage

  • Detect wechat user agent
use Khsing\WechatAgent\WechatAgent;
$agent = new WechatAgent;

$agent->is("Wechat"); // return true or false 

  • Get version of wechat
$agent->version("Wechat");
  • Compare version
$agent->version_compare("Wechat", "6.6.3"); // return -1 if lower than 6.6.3, return 0 if equal, return 1 if greater than 6.6.3
$agent->version_compare("Wechat", "6.6.1", ">="); // return true if greater than 6.6.1
  • Get network type
$agent->nettype() // return 4G/WIFI etc.

Thanks, (*3)

The Versions

28/02 2018

dev-master

9999999-dev

Detect wechat version and network type information

  Sources   Download

MIT

The Requires

 

The Development Requires

by Guixing Bai

28/02 2018

v1.2

1.2.0.0

Detect wechat version and network type information

  Sources   Download

MIT

The Requires

 

The Development Requires

by Guixing Bai

28/02 2018

v1.1

1.1.0.0

Detect wechat version and network type information

  Sources   Download

MIT

The Requires

 

The Development Requires

by Guixing Bai

28/02 2018

v1.0

1.0.0.0

Detect wechat version and network type information

  Sources   Download

MIT

The Requires

 

The Development Requires

by Guixing Bai