Skip to content

carmenioanamihaila/n-meta-laravel

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

N-Meta Laravel

Scrutinizer Code Quality Code Coverage Build Status Code Intelligence Status

📝 Introduction

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

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

📦 Installation

To install this package you will need:

  • PHP 7.1+

Run

composer require nstack/laravel-sdk

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

You can now call via facade, eg:

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%