Documentation

Zip
in package

Tags
author

Andreas Schempp andreas.schempp@terminal42.ch

Table of Contents

getComposerJson()  : string|null
Gets content of the root composer.json inside a ZIP archive.
locateFile()  : bool|int
Find a file by name, returning the one that has the shortest path.

Methods

getComposerJson()

Gets content of the root composer.json inside a ZIP archive.

public static getComposerJson(string $pathToZip) : string|null
Parameters
$pathToZip : string
Return values
string|null

locateFile()

Find a file by name, returning the one that has the shortest path.

private static locateFile(ZipArchive $zip, string $filename) : bool|int
Parameters
$zip : ZipArchive
$filename : string
Return values
bool|int

Search results