public static function getName($file)
  {
    $file = str_replace('\\', '/', $file);
    $slash = strrpos($file, '/');
    if ( $slash !== false ){
      return substr($file, $slash + 1);
    }

    return $file;
  }
public static function getName($file)
  {
    $file = str_replace('\\', '/', $file);
    $slash = strrpos($file, '/');
    if ( $slash !== false ){
      return substr($file, $slash + 1);
    }

    return $file;
  }
Returns the name, without any path.

@param   string  $file  File path
@return   string  filename