/**
  * Supress
  *
  * Supresses a UPC string based on 4 conditional options.
  *
  * @param string $upc 12-Digit UPC to Suppress
  * @throws UpcException If the UPC is less than or more than 12 digits
  * @return Returns the 6, 7 or 8 digit suppressed UPC-E code
  */
 public static function suppress($upc)
 {
     $conditionA = UpcESupressor::suppressConditionA($upc);
     if ($conditionA !== false) {
         return $conditionA;
     }
     $conditionB = UpcESupressor::suppressConditionB($upc);
     if ($conditionA !== false) {
         return $conditionB;
     }
     $conditionC = UpcESupressor::suppressConditionC($upc);
     if ($conditionA !== false) {
         return $conditionC;
     }
     $conditionD = UpcESupressor::suppressConditionD($upc);
     if ($conditionA !== false) {
         return $conditionD;
     }
     return false;
 }
<?php

// Load Product Validator
// Recommended: Use Auto Loader
require_once __DIR__ . '/../ProductValidator.php';
use ProductValidator\UpcEValidator;
$upcE6Expanded = '065100004327';
// Expand the 6 digit code.
$code = UpcEValidator\UpcESupressor::suppress($upcE6Expanded);
var_dump($code);