PHPackages                             monstar-lab-oss/n-meta-laravel - 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. monstar-lab-oss/n-meta-laravel

ActiveLibrary

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

Laravel SDK for NMeta

2.0.0(3y ago)314.3k1[1 PRs](https://github.com/ml-opensource/n-meta-laravel/pulls)MITPHPPHP ^8.0CI failing

Since Mar 30Pushed 2y ago3 watchersCompare

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

READMEChangelog (5)Dependencies (4)Versions (9)Used By (0)

N-Meta Laravel
==============

[](#n-meta-laravel)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/f1fe83cfcd0ef0b5b5d00996eef27361c2f7fb11c9c876d3b82f86f9d0f3555d/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6e737461636b2d696f2f6c61726176656c2d73646b2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/nstack-io/laravel-sdk/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/afd1372d17cdde7578ad27c51b2b5fe6e85d67937f0745e20df64dd45c96d949/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6e737461636b2d696f2f6c61726176656c2d73646b2f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/nstack-io/laravel-sdk/?branch=master)[![Build Status](https://camo.githubusercontent.com/5b5670ed5bd614f1edf7e6e669b51977caa98fcac0f46e89103b9c5b9a8d62bf/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6e737461636b2d696f2f6c61726176656c2d73646b2f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/nstack-io/laravel-sdk/build-status/master)[![Code Intelligence Status](https://camo.githubusercontent.com/52ae7fa3a39478ebd6e53e78113cc396b7d7f9b0abc3399444a10b2e9e4c1bdf/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6e737461636b2d696f2f6c61726176656c2d73646b2f6261646765732f636f64652d696e74656c6c6967656e63652e7376673f623d6d6173746572)](https://scrutinizer-ci.com/code-intelligence)

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

[](#-introduction)

Package to enforce &amp; parse Meta header (Default: "Client-Meta-Information")

`Client-Meta-Information: [PLATFORM];[ENVIRONMENT];[APP_VERSION];[DEVICE_OS];[DEVICE]`

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

[](#-installation)

To install this package you will need:

- PHP 7.1+

Run

`composer require monstar-lab-oss/n-meta-laravel`

or setup in composer.json

`monstar-lab-oss/n-meta-laravel: 1.0.x`

In `config/app.php` (Laravel) or `bootstrap/app.php` (Lumen) you should add service provider

```
NMeta\ServiceProvider::class
```

Copy config over from vendor/monstar-lab-oss/n-meta-laravel/config/n-meta.php to project/config/n-meta.php

```
php artisan vendor:publish --provider="NMeta\ServiceProvider"

```

⚙ Usage
-------

[](#-usage)

Add middleware to routes:

```
// in RouteServiceProvider
protected function mapApiRoutes()
{
    Route::prefix('api')
        ->middleware('api')
        ->middleware(NMetaMiddleware::class) // Add NMeta middleware
        ->namespace($this->namespace)
        ->group(base_path('routes/api.php'));
}
```

You can now call via function, eg:

```
nmeta()->getPlatform()
nmeta()->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

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 53.8% 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 ~325 days

Total

4

Last Release

1257d ago

Major Versions

1.0.2 → 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 (14 commits)")[![Casperhr](https://avatars.githubusercontent.com/u/1279756?v=4)](https://github.com/Casperhr "Casperhr (12 commits)")

---

Tags

phplaravelmetan-metanmeta

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[octw/aramex

A Library to integrate with Aramex APIs

2925.2k](/packages/octw-aramex)

PHPackages © 2026

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