定制 monstar-lab-oss/n-meta-php 二次开发

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

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

monstar-lab-oss/n-meta-php

Composer 安装命令:

composer require monstar-lab-oss/n-meta-php

包简介

PHP package for parsing Meta header

关键字:

README 文档

README

Scrutinizer Code Quality Code Coverage Build Status Code Intelligence Status

📝 Introduction

Core of N-Meta, parsing and DTO, A User-Agent header for android and ios apps.

Used to parse the N-Meta headers using following format:

Meta: [PLATFORM];[ENVIRONMENT];[APP_VERSION];[DEVICE_OS];[DEVICE]

PLATFORM:

Description of the requesting platform, expects values android, ios or web

ENVIRONMENT:

Description of the environment the request is targeted at, normally staging or production

APP_VERSION:

Semantic version sting of the requesting client x.y.z. Not required if platform is web.

DEVICE_OS:

Version of the operating system the request was made from, eg. 10.2. Not required if platform is web.

DEVICE:

Description of the device making the request, eg. iphone-x. Not required if platform is web.

📦 Installation

To use this package you will need:

  • PHP 8.0+

Run

composer require monstar-lab/n-meta

or setup in composer.json

monstar-lab/n-meta: 2.0.x

⚙ Usage

$header = 'ios;production;1.0.0;10.2;iphone-x';
$meta = new NMeta($header);

$meta->getPlatform();
$meta->getVersion();

🏆 Credits

This package is developed and maintained by the PHP team at Monstar Lab

📄 License

This package is open-sourced software licensed under the MIT license

统计信息

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

GitHub 信息

  • Stars: 6
  • Watchers: 4
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-03-30