src/PlatformClient.php
public function getProjectDirect($id, $hostname, $https = true)
    {
        $scheme = $https ? 'https' : 'http';
        $collection = "$scheme://$hostname/api/projects";
        return Project::get($id, $collection, $this->connector->getClient());
    }
public function getProjectDirect($id, $hostname, $https = true)
    {
        $scheme = $https ? 'https' : 'http';
        $collection = "$scheme://$hostname/api/projects";
        return Project::get($id, $collection, $this->connector->getClient());
    }
public function getProjectDirect ( $ id , $ hostname , $ https = true ) { $ scheme = $ https ? 'https' : 'http' ; $ collection = "$scheme://$hostname/api/projects" ; return Project :: get ( $ id , $ collection , $ this -> connector -> getClient ( ) ) ; }
Get a single project at a known location.

@param string $id       The project ID.
@param string $hostname The hostname of the Platform.sh regional API,
e.g. 'eu.platform.sh' or 'us.platform.sh'.
@param bool   $https    Whether to use HTTPS (default: true).

@internal It's now better to use getProject(). This method will be made
private in a future release.

@return Project|false
Get a single project at a known location .