src/Service/validateService.php
public function longerThan($value, $min)
    {
        $this->errorMessage = null;
        $result = false;
        if (function_exists("mb_strlen")) {
            if (mb_strlen($value, 'UTF-8') > $min) {
                $result = true;
            }
        } else {
            if (strlen($value) > $min) {
                $result = true;
            }
        }
        if (!$result) {
            $this->errorMessage = MessageHelper::getMessage("VALIDATESVC_LONGER_THAN", array($this->fieldNameMask, $min));
        }
        return $result;
    }
public function longerThan($value, $min)
    {
        $this->errorMessage = null;
        $result = false;
        if (function_exists("mb_strlen")) {
            if (mb_strlen($value, 'UTF-8') > $min) {
                $result = true;
            }
        } else {
            if (strlen($value) > $min) {
                $result = true;
            }
        }
        if (!$result) {
            $this->errorMessage = MessageHelper::getMessage("VALIDATESVC_LONGER_THAN", array($this->fieldNameMask, $min));
        }
        return $result;
    }
Function to check if a value is longer than the $min length

@param string $value
@param integer $min
@return boolean Valid?