code: public static function getName($file)
    {
      $file = str_replace('\\', '/', $file);
      $slash = strrpos($file, '/');
      if ( $slash !== false ){
        return substr($file, $slash + 1);
      }
  
      return $file;
    }
docs: Returns the name, without any path.
  
  @param   string  $file  File path
  @return   string  filename