PhantomInstaller\Installer::getPhantomJsBinary PHP Method

getPhantomJsBinary() public method

Get path to PhantomJS binary.
public getPhantomJsBinary ( string $binDir ) : string | boolean
$binDir string
return string | boolean Returns false, if file not found, else filepath.
    public function getPhantomJsBinary($binDir)
    {
        $os = $this->getOS();
        $binary = $binDir . '/phantomjs';
        if ($os === 'windows') {
            // the suffix for binaries on windows is ".exe"
            $binary .= '.exe';
        }
        return realpath($binary);
    }