{"id":18561069,"url":"https://github.com/lamoda/gs1-barcode-parser","last_synced_at":"2025-06-22T22:34:07.176Z","repository":{"id":35027308,"uuid":"197792537","full_name":"lamoda/gs1-barcode-parser","owner":"lamoda","description":"GS1 Datamatrix parser for PHP compatible with official GS1 documentation","archived":false,"fork":false,"pushed_at":"2022-02-14T08:44:59.000Z","size":19,"stargazers_count":20,"open_issues_count":1,"forks_count":9,"subscribers_count":16,"default_branch":"master","last_synced_at":"2025-03-24T15:42:05.652Z","etag":null,"topics":["gs1","php"],"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/lamoda.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}},"created_at":"2019-07-19T14:57:52.000Z","updated_at":"2024-09-16T08:54:56.000Z","dependencies_parsed_at":"2022-08-08T04:00:47.357Z","dependency_job_id":null,"html_url":"https://github.com/lamoda/gs1-barcode-parser","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lamoda%2Fgs1-barcode-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lamoda%2Fgs1-barcode-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lamoda%2Fgs1-barcode-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lamoda%2Fgs1-barcode-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lamoda","download_url":"https://codeload.github.com/lamoda/gs1-barcode-parser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247934803,"owners_count":21020722,"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","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":["gs1","php"],"created_at":"2024-11-06T22:05:38.250Z","updated_at":"2025-04-10T02:31:19.609Z","avatar_url":"https://github.com/lamoda.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Lamoda GS1 Barcode parser and validator\n=======================================\n\n[![Build Status](https://travis-ci.org/lamoda/gs1-barcode-parser.svg?branch=master)](https://travis-ci.org/lamoda/gs1-barcode-parser)\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/lamoda/gs1-barcode-parser/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/lamoda/gs1-barcode-parser/?branch=master)\n[![Code Coverage](https://scrutinizer-ci.com/g/lamoda/gs1-barcode-parser/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/lamoda/gs1-barcode-parser/?branch=master)\n[![Build Status](https://scrutinizer-ci.com/g/lamoda/gs1-barcode-parser/badges/build.png?b=master)](https://scrutinizer-ci.com/g/lamoda/gs1-barcode-parser/build-status/master)\n\n\n## Installation\n\n### Composer\n\n```sh\ncomposer require lamoda/gs1-barcode-parser\n```\n\n## Description\n\nThis library provides parsing of GS1 Barcodes according to \n[GS1 General specification](https://www.gs1.org/sites/default/files/docs/barcodes/GS1_General_Specifications.pdf)\nand [GS1 DataMatrix Guideline](https://www.gs1.org/docs/barcodes/GS1_DataMatrix_Guideline.pdf).\n\nLibrary also provides general purpose validator for barcode's content.\n\n## Usage\n\n### Parser\n```php\n\u003c?php\n\n$config = new \\Lamoda\\GS1Parser\\Parser\\ParserConfig();\n$parser = new \\Lamoda\\GS1Parser\\Parser\\Parser($config);\n\n$value = ']d201034531200000111719112510ABCD1234';\n\n$barcode = $parser-\u003eparse($value);\n\n// $barcode is an object of Barcode class\n```\n\n### Validator\n```php\n\u003c?php\n\n$parserConfig = new \\Lamoda\\GS1Parser\\Parser\\ParserConfig();\n$parser = new \\Lamoda\\GS1Parser\\Parser\\Parser($parserConfig);\n\n$validatorConfig = new \\Lamoda\\GS1Parser\\Validator\\ValidatorConfig();\n$validator = new \\Lamoda\\GS1Parser\\Validator\\Validator($parser, $validatorConfig);\n\n$value = ']d201034531200000111719112510ABCD1234';\n\n$resolution = $validator-\u003evalidate($value);\n\nif ($resolution-\u003eisValid()) {\n    // ...\n} else {\n    var_dump($resolution-\u003egetErrors());\n}\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flamoda%2Fgs1-barcode-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flamoda%2Fgs1-barcode-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flamoda%2Fgs1-barcode-parser/lists"}