Composer API
Class

Composer\Package\Archiver\ZipArchiver

class ZipArchiver implements ArchiverInterface

Methods

string archive($sources, $target, $format, array $excludes = array(), $ignoreFilters = false)

Create an archive from the sources.

bool supports(string $format, string $sourceType)

Format supported by the archiver.

Details

at line 30
public string archive($sources, $target, $format, array $excludes = array(), $ignoreFilters = false)

Create an archive from the sources.

Parameters

$sources
$target
$format
array $excludes
$ignoreFilters

Return Value

string The path to the written archive file

at line 64
public bool supports(string $format, string $sourceType)

Format supported by the archiver.

Parameters

string $format The archive format
string $sourceType The source type (git, svn, hg, etc.)

Return Value

bool true if the format is supported by the archiver