All Functions

ucc - Uniform Code Council

The UCC function is an alias of the GTIN (and EAN) functions).

Check the GTIN function for more details

Usage(s)

ucc ( ) Returns a random UCC-13 (TGTIN-13) number
ucc ( $type ) Returns a random UCC (GTIN) number of type $type.
ucc ( $type, $prefill ) Returns a random UCC (GTIN) number of type $type with the prefix $prefill

Parameter(s)

$type The type of UCC (GTIN or EAN) number to generate. These Types are supported:
Type GTIN Aliases
8 GTIN-8 EAN-8 UCC-8
12 GTIN-12 EAN-12 UCC-12 UPC
13 GTIN-13 EAN-13 UCC-13 EAN CIP JAN
14 GTIN-14 EAN-14 UCC-14
18 na SSCC
$prefill The prefix to be used in the EAN (GTIN) number (used to define the retailer, manufacturer, collector, researcher, or other entity)

Example(s)

UCC (GTIN or EAN) Codes

ucc() // 7495563456235
Returns a valid UCC(EAN-13) code

ucc(8) // 18128147
Returns a valid UCC-8 code

ucc(14,1337) // 13377923938760
Returns a valid UCC-14 code with a manufacturer code of 1337

See also

gtin - Global Trade Item Number ean - EAN International cip - Catalogue Item Publication jan - Japanese Article Number upc - Universal Product Code sscc - Serial Shipping Container Code grai - Global Returnable Asset Identifier gcn - Global Coupon Number