vchukh/ualibs 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

vchukh/ualibs

Composer 安装命令:

composer require vchukh/ualibs

包简介

User-Agents liibrary

README 文档

README

Scrutinizer Code Quality Code Coverage Build Status Code Intelligence Status Build Status Latest Stable Version Total Downloads License

UaLibs is a simple PHP library for fetching User-Agent string for different browsers, like Chrome, Edge, Opera, Safari, Internet Explorer, Android Webkit.

It uses User-Agent data from next package: https://github.com/tamimibrahim17/List-of-user-agents.

Installation

Composer

Add ualibs in your composer.json or create a new composer.json:

{
    "require": {
        "vchukh/ualibs": "^0.1"
    }
}

Now tell composer to download the library by running the command:

$ php composer.phar install

Composer will generate the autoloader file automatically. So you only have to include this. Typically its located in the vendor dir and its called autoload.php

Basic Usage:

<?php

$ualibs = new UaLibs();

var_dump($ualibs->get()); // get all available user agents
var_dump($ualibs->getRandom()); // get random user-agent

var_dump($ualibs->getChrome()); // get all available Chrome user agents
var_dump($ualibs->getChromeRandom()); // get Chrome random user agent

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2018-08-13

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固