{"id":24714438,"url":"https://github.com/ml-opensource/n-meta-php","last_synced_at":"2025-10-09T12:31:34.470Z","repository":{"id":57019506,"uuid":"251312942","full_name":"ml-opensource/n-meta-php","owner":"ml-opensource","description":null,"archived":false,"fork":false,"pushed_at":"2023-03-03T11:15:57.000Z","size":36,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-08-08T15:49:08.424Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ml-opensource.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-03-30T13:27:50.000Z","updated_at":"2024-05-13T15:49:40.000Z","dependencies_parsed_at":"2024-05-30T11:45:23.329Z","dependency_job_id":"46bafdda-48e5-4832-a968-29a1769b891b","html_url":"https://github.com/ml-opensource/n-meta-php","commit_stats":null,"previous_names":["ml-opensource/n-meta-php","monstar-lab-oss/n-meta-php"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/ml-opensource/n-meta-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ml-opensource%2Fn-meta-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ml-opensource%2Fn-meta-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ml-opensource%2Fn-meta-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ml-opensource%2Fn-meta-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ml-opensource","download_url":"https://codeload.github.com/ml-opensource/n-meta-php/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ml-opensource%2Fn-meta-php/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279001443,"owners_count":26083078,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-27T08:16:35.746Z","updated_at":"2025-10-09T12:31:34.138Z","avatar_url":"https://github.com/ml-opensource.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# N-Meta PHP sdk\n\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/monstar-lab-oss/n-meta-php/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/monstar-lab-oss/n-meta-php/?branch=master)\n[![Code Coverage](https://scrutinizer-ci.com/g/monstar-lab-oss/n-meta-php/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/monstar-lab-oss/n-meta-php/?branch=master)\n[![Build Status](https://scrutinizer-ci.com/g/monstar-lab-oss/n-meta-php/badges/build.png?b=master)](https://scrutinizer-ci.com/g/monstar-lab-oss/n-meta-php/build-status/master)\n[![Code Intelligence Status](https://scrutinizer-ci.com/g/monstar-lab-oss/n-meta-php/badges/code-intelligence.svg?b=master)](https://scrutinizer-ci.com/code-intelligence)\n\n## 📝 Introduction\n\nCore of N-Meta, parsing and DTO, A User-Agent header for android and ios apps.\n\nUsed to parse the N-Meta headers using following format:\n\n`Meta: [PLATFORM];[ENVIRONMENT];[APP_VERSION];[DEVICE_OS];[DEVICE]`\n\n#### PLATFORM:\nDescription of the requesting platform, expects values `android`, `ios` or `web`\n\n#### ENVIRONMENT:\nDescription of the environment the request is targeted at, normally `staging` or `production`\n\n#### APP_VERSION:\nSemantic version sting of the requesting client `x.y.z`. Not required if platform is web.\n\n#### DEVICE_OS:\nVersion of the operating system the request was made from, eg. `10.2`. Not required if platform is web.\n\n#### DEVICE:\nDescription of the device making the request, eg. `iphone-x`. Not required if platform is web.\n\n## 📦 Installation\n\nTo use this package you will need:\n\n* PHP 8.0+\n\nRun\n\n`composer require monstar-lab/n-meta`\n\nor setup in composer.json\n\n`monstar-lab/n-meta: 2.0.x`\n\n\n## ⚙ Usage\n\n```php\n$header = 'ios;production;1.0.0;10.2;iphone-x';\n$meta = new NMeta($header);\n\n$meta-\u003egetPlatform();\n$meta-\u003egetVersion();\n```  \n\n## 🏆 Credits\n\nThis package is developed and maintained by the PHP team at [Monstar Lab](http://monstar-lab.com)\n\n## 📄 License\n\nThis package is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fml-opensource%2Fn-meta-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fml-opensource%2Fn-meta-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fml-opensource%2Fn-meta-php/lists"}