PHPackages                             monstar-lab-oss/n-meta-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. monstar-lab-oss/n-meta-php

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

monstar-lab-oss/n-meta-php
==========================

PHP package for parsing Meta header

2.0.3(3y ago)614.3k[1 PRs](https://github.com/ml-opensource/n-meta-php/pulls)1MITPHPPHP ^8.0CI passing

Since Mar 30Pushed 3mo ago4 watchersCompare

[ Source](https://github.com/ml-opensource/n-meta-php)[ Packagist](https://packagist.org/packages/monstar-lab-oss/n-meta-php)[ Docs](https://monstar-lab.com)[ RSS](/packages/monstar-lab-oss-n-meta-php/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (5)Dependencies (1)Versions (8)Used By (1)

N-Meta PHP sdk
==============

[](#n-meta-php-sdk)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/34665559194b209e8a9c2faad25e06394f6b4ff3b58540b550945b077041ff7f/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6d6f6e737461722d6c61622d6f73732f6e2d6d6574612d7068702f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/monstar-lab-oss/n-meta-php/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/a36a746501cb1a5f723c148f26d19427b484c4e24ab582f021e04950db1d54e3/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6d6f6e737461722d6c61622d6f73732f6e2d6d6574612d7068702f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/monstar-lab-oss/n-meta-php/?branch=master)[![Build Status](https://camo.githubusercontent.com/bb5df376985fa29d8a0d237c46911a002a4c9c97d2a14e1311c07479494390b8/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6d6f6e737461722d6c61622d6f73732f6e2d6d6574612d7068702f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/monstar-lab-oss/n-meta-php/build-status/master)[![Code Intelligence Status](https://camo.githubusercontent.com/fbf33689999d64cd9e9c8fdde33ff53f073552511a7d905b363e4fcd22e45f31/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6d6f6e737461722d6c61622d6f73732f6e2d6d6574612d7068702f6261646765732f636f64652d696e74656c6c6967656e63652e7376673f623d6d6173746572)](https://scrutinizer-ci.com/code-intelligence)

📝 Introduction
--------------

[](#-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:

[](#platform)

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

#### ENVIRONMENT:

[](#environment)

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

#### APP\_VERSION:

[](#app_version)

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

#### DEVICE\_OS:

[](#device_os)

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

#### DEVICE:

[](#device)

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

📦 Installation
--------------

[](#-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
-------

[](#-usage)

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

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

🏆 Credits
---------

[](#-credits)

This package is developed and maintained by the PHP team at [Monstar Lab](http://monstar-lab.com)

📄 License
---------

[](#-license)

This package is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)

###  Health Score

43

—

FairBetter than 90% of packages

Maintenance57

Moderate activity, may be stable

Popularity24

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 81% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~267 days

Total

5

Last Release

1163d ago

Major Versions

1.0.0 → 2.0.02022-12-02

PHP version history (2 changes)1.0.0PHP ^7.1

2.0.0PHP ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1818573?v=4)[monstar-lab](/maintainers/monstar-lab)[@monstar-lab](https://github.com/monstar-lab)

---

Top Contributors

[![rasmusebbesen](https://avatars.githubusercontent.com/u/944158?v=4)](https://github.com/rasmusebbesen "rasmusebbesen (17 commits)")[![Casperhr](https://avatars.githubusercontent.com/u/1279756?v=4)](https://github.com/Casperhr "Casperhr (4 commits)")

---

Tags

phpn-meta

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/monstar-lab-oss-n-meta-php/health.svg)

```
[![Health](https://phpackages.com/badges/monstar-lab-oss-n-meta-php/health.svg)](https://phpackages.com/packages/monstar-lab-oss-n-meta-php)
```

###  Alternatives

[nikic/phlexy

Lexing experiments in PHP

162570.9k13](/packages/nikic-phlexy)[corveda/php-sandbox

A PHP library that can be used to run PHP code in a sandboxed environment

23483.5k2](/packages/corveda-php-sandbox)[blancks/fast-jsonpatch-php

Class designed to efficiently handle JSON Patch operations in accordance with the RFC 6902 specification

396.4k](/packages/blancks-fast-jsonpatch-php)[bupy7/xml-constructor

The array-like constructor of XML document structure.

1337.9k](/packages/bupy7-xml-constructor)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
