public static function archiveFile($file, $archiveName)
    {
        if (!is_file($file))
            throw new InvalidArgumentException($file.' is not a valid file to archive');

        return static::archiveFiles($file, $archiveName) === 1;
    }
public static function archiveFile($file, $archiveName)
    {
        if (!is_file($file))
            throw new InvalidArgumentException($file.' is not a valid file to archive');

        return static::archiveFiles($file, $archiveName) === 1;
    }
public static function archiveFile ( $ file , $ archiveName ) { if ( ! is_file ( $ file ) ) throw new InvalidArgumentException ( $ file . ' is not a valid file to archive' ) ; return static :: archiveFiles ( $ file , $ archiveName ) === 1 ; }
Creates an archive with one file
@param string $file
@param string $archiveName
@return bool
@throws \Exception
Creates an archive with one file