function ArchiverInterface::archive
Create an archive from the sources.
Parameters
string $sources The sources directory:
string $target The target file:
string $format The format used for archive:
string[] $excludes A list of patterns for files to exclude:
bool $ignoreFilters Whether to ignore filters when looking for files:
Return value
string The path to the written archive file
2 methods override ArchiverInterface::archive()
- PharArchiver::archive in vendor/
composer/ composer/ src/ Composer/ Package/ Archiver/ PharArchiver.php - @inheritDoc
- ZipArchiver::archive in vendor/
composer/ composer/ src/ Composer/ Package/ Archiver/ ZipArchiver.php - @inheritDoc
File
-
vendor/
composer/ composer/ src/ Composer/ Package/ Archiver/ ArchiverInterface.php, line 33
Class
- ArchiverInterface
- @author Till Klampaeckel <till@php.net> @author Matthieu Moquet <matthieu@moquet.net> @author Nils Adermann <naderman@naderman.de>
Namespace
Composer\Package\ArchiverCode
public function archive(string $sources, string $target, string $format, array $excludes = [], bool $ignoreFilters = false) : string;