An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# Real GTIN Validator

[![Latest Stable Version](https://img.shields.io/packagist/v/real-digital/gtin-validator.svg)](https://packagist.org/packages/real-digital/gtin-validator)
[![Build Status](https://github.com/real-digital/gtin-validator/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/real-digital/gtin-validator/actions)
[![Coverage Status](https://coveralls.io/repos/github/real-digital/gtin-validator/badge.svg?branch=master)](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