PhpBrew\Extension\Provider\GithubProvider::buildPackageDownloadUrl PHP Method

buildPackageDownloadUrl() public method

By default we install extension from master branch.
public buildPackageDownloadUrl ( $version = 'master' )
    public function buildPackageDownloadUrl($version = 'master')
    {
        if ($this->getOwner() == null || $this->getRepository() == null) {
            throw new Exception('Username or Repository invalid.');
        }
        return sprintf('https://%s/%s/%s/archive/%s.tar.gz', $this->site, $this->getOwner(), $this->getRepository(), $version);
    }