Compiler
in package
The Compiler class compiles composer into a phar
Tags
Table of Contents
- $branchAliasVersion : mixed
- $version : mixed
- $versionDate : mixed
- compile() : mixed
- Compiles composer into a single phar file
- addComposerBin() : mixed
- addFile() : mixed
- getRelativeFilePath() : string
- getStub() : mixed
- stripWhitespace() : string
- Removes whitespace from a PHP source string while preserving line numbers.
Properties
$branchAliasVersion
private
mixed
$branchAliasVersion
= ''
$version
private
mixed
$version
$versionDate
private
mixed
$versionDate
Methods
compile()
Compiles composer into a single phar file
public
compile([string $pharFile = 'composer.phar' ]) : mixed
Parameters
- $pharFile : string = 'composer.phar'
-
The full path to the file to create
Tags
Return values
mixed —addComposerBin()
private
addComposerBin(mixed $phar) : mixed
Parameters
- $phar : mixed
Return values
mixed —addFile()
private
addFile(mixed $phar, mixed $file[, mixed $strip = true ]) : mixed
Parameters
- $phar : mixed
- $file : mixed
- $strip : mixed = true
Return values
mixed —getRelativeFilePath()
private
getRelativeFilePath(SplFileInfo $file) : string
Parameters
- $file : SplFileInfo
Return values
string —getStub()
private
getStub() : mixed
Return values
mixed —stripWhitespace()
Removes whitespace from a PHP source string while preserving line numbers.
private
stripWhitespace(string $source) : string
Parameters
- $source : string
-
A PHP string
Return values
string —The PHP string with the whitespace removed