Skip to content

A library for calculating UPC (universal product code) check digits in PHP

Notifications You must be signed in to change notification settings

SamMakesCode/upc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

67d938e · May 25, 2022

History

2 Commits
May 25, 2022
May 25, 2022
Oct 31, 2017
Oct 31, 2017
May 25, 2022
May 25, 2022

Repository files navigation

UPC Checksum Calculator

A PHP library for calculating UPC (Universal Product Code) checksum digits.

Installation

Download and install this library using composer:

composer require samlittler/upc

Alternatively, download this repository as a ZIP and include the src/UPC.php file in your project.

Usage

Usage is simple

$your_product_code = '03600024145';
$checksum = \SamLittler\UPC\UPC::calculate($your_product_code); // returns 7

About

A library for calculating UPC (universal product code) check digits in PHP

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages