\ComposerCompiler

The Compiler class compiles composer into a phar

Summary

Methods
Properties
Constants
compile()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
getRelativeFilePath()
addFile()
addComposerBin()
stripWhitespace()
getStub()
$version
$branchAliasVersion
$versionDate
N/A

Properties

$version

$version : 

Type

$branchAliasVersion

$branchAliasVersion : 

Type

$versionDate

$versionDate : 

Type

Methods

compile()

compile(string  $pharFile = 'composer.phar') 

Compiles composer into a single phar file

Parameters

string $pharFile

The full path to the file to create

Throws

\RuntimeException

getRelativeFilePath()

getRelativeFilePath(\SplFileInfo  $file) : string

Parameters

\SplFileInfo $file

Returns

string

addFile()

addFile(  $phar,   $file,   $strip = true) 

Parameters

$phar
$file
$strip

addComposerBin()

addComposerBin(  $phar) 

Parameters

$phar

stripWhitespace()

stripWhitespace(string  $source) : string

Removes whitespace from a PHP source string while preserving line numbers.

Parameters

string $source

A PHP string

Returns

string —

The PHP string with the whitespace removed

getStub()

getStub()