Method |
Description |
|
__construct ( Composer\Composer $composer, Composer\IO\BaseIO $io ) |
|
|
__invoke ( ) |
|
|
copyPhantomJsBinaryToBinFolder ( string $targetDir, string $binDir ) : boolean |
Copies the PhantomJs binary to the bin folder. |
|
createComposerInMemoryPackage ( string $targetDir, string $version ) : Composer\Package\Package |
Returns a Composer Package, which was created in memory. |
|
download ( string $targetDir, string $version ) : boolean |
The main download function. |
|
dropClassWithPathToInstalledBinary ( string $binaryPath ) : boolean |
Drop php class with path to installed phantomjs binary for easier usage. |
|
getBitSize ( ) : string |
Returns the Bit-Size. |
|
getCdnUrl ( string $version ) : string |
Returns the base URL for downloads. |
|
getComposer ( ) : Composer\Composer |
|
|
getIO ( ) : Composer\IO\BaseIO |
|
|
getLatestPhantomJsVersion ( ) : string |
Returns the latest PhantomJsVersion. |
|
getLowerVersion ( string $old_version ) : string |
Returns a lower version for a version number. |
|
getOS ( ) : string |
Returns the Operating System. |
|
getPhantomJsBinary ( string $binDir ) : string | boolean |
Get path to PhantomJS binary. |
|
getPhantomJsVersionFromBinary ( string $pathToBinary ) : string |
Get PhantomJS application version. Equals running "phantomjs -v" on the CLI. |
|
getPhantomJsVersions ( ) : array |
Returns an array with PhantomJs version numbers. |
|
getRequiredVersion ( Composer\Package\RootPackageInterface $package ) : mixed |
Returns the version for the given package either from the "require" or "require-dev" packages array. |
|
getURL ( string $version ) : string |
Returns the URL of the PhantomJS distribution for the installing OS. |
|
getVersion ( ) : string |
Returns the PhantomJS version number. |
|
installPhantomJS ( Composer\Script\Event $event ) |
installPhantomJS is the main function of the install script. |
|
setComposer ( Composer\Composer $composer ) : static |
|
|
setIO ( Composer\IO\BaseIO $io ) : static |
|
|