public static function minLength($value, int $minLength, string $encoding = 'UTF-8'): bool
    {
        if (!static::isStringCastable($value)) {
            return false;
        }

        $strlen = (int) mb_strlen((string) $value, $encoding);

        return $strlen >= $minLength;
    }
public static function minLength($value, int $minLength, string $encoding = 'UTF-8'): bool
    {
        if (!static::isStringCastable($value)) {
            return false;
        }

        $strlen = (int) mb_strlen((string) $value, $encoding);

        return $strlen >= $minLength;
    }
public static function minLength ( $ value , int $ minLength , string $ encoding = 'UTF-8' ) : bool { if ( ! static :: isStringCastable ( $ value ) ) { return false ; } $ strlen = ( int ) mb_strlen ( ( string ) $ value , $ encoding ) ; return $ strlen >= $ minLength ; }
Checks if value has a string length greater or equal to a minimum

@param mixed  $value     The value
@param int    $minLength The minimum length
@param string $encoding  The string encoding

@return bool
Checks if value has a string length greater or equal to a minimum