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]
Description of the requesting platform, expects values android, ios or web
Description of the environment the request is targeted at, normally staging or production
Semantic version sting of the requesting client x.y.z. Not required if platform is web.
Version of the operating system the request was made from, eg. 10.2. Not required if platform is web.
Description of the device making the request, eg. iphone-x. Not required if platform is web.
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
$header = 'ios;production;1.0.0;10.2;iphone-x';
$meta = new NMeta($header);
$meta->getPlatform();
$meta->getVersion();This package is developed and maintained by the PHP team at Monstar Lab
This package is open-sourced software licensed under the MIT license


