https://github.com/real-digital/gtin-validator
Real GTIN Validator is a PHP library based on the GTIN specification and use SOLID principles
https://github.com/real-digital/gtin-validator
ean ean-code ean13 ean8 gtin validation validator
Last synced: 5 months ago
JSON representation
Real GTIN Validator is a PHP library based on the GTIN specification and use SOLID principles
- Host: GitHub
- URL: https://github.com/real-digital/gtin-validator
- Owner: real-digital
- License: other
- Created: 2018-05-24T09:49:48.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2021-12-17T21:19:22.000Z (over 4 years ago)
- Last Synced: 2025-08-24T19:01:53.707Z (10 months ago)
- Topics: ean, ean-code, ean13, ean8, gtin, validation, validator
- Language: PHP
- Homepage:
- Size: 125 KB
- Stars: 17
- Watchers: 5
- Forks: 14
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Real GTIN Validator
[](https://packagist.org/packages/real-digital/gtin-validator)
[](https://github.com/real-digital/gtin-validator/actions)
[](https://coveralls.io/github/real-digital/gtin-validator?branch=master)
A GTIN is a string of digits that uniquely identifies a trade item (a product that is bought and sold).
A GTIN is globally unique, meaning that no two products in the world share the same GTIN.
This library provides a straightforward way by which a number can be determined to be a valid GTIN
or suspected of being invalid in some way.
## Installation
via Composer
``` bash
$ composer require real-digital/gtin-validator
```
via GitHub
``` bash
$ git clone https://github.com/real-digital/gtin-validator.git
```
### Usage
```php