public static function archiveDirectory($directory, $archiveName)
    {
        if (!is_dir($directory) || !is_readable($directory))
            throw new InvalidArgumentException($directory.' is not a valid directory to archive');

        return static::archiveFiles($directory, $archiveName) > 0;
    }
public static function archiveDirectory($directory, $archiveName)
    {
        if (!is_dir($directory) || !is_readable($directory))
            throw new InvalidArgumentException($directory.' is not a valid directory to archive');

        return static::archiveFiles($directory, $archiveName) > 0;
    }
public static function archiveDirectory ( $ directory , $ archiveName ) { if ( ! is_dir ( $ directory ) || ! is_readable ( $ directory ) ) throw new InvalidArgumentException ( $ directory . ' is not a valid directory to archive' ) ; return static :: archiveFiles ( $ directory , $ archiveName ) > 0 ; }
Creates an archive with full directory contents
@param string $directory
@param string $archiveName
@return bool
@throws Exception
Creates an archive with full directory contents