src/PlatformClient.php
public function getProjects($reset = false)
    {
        $data = $this->getAccountInfo($reset);
        $client = $this->connector->getClient();
        $projects = [];
        foreach ($data['projects'] as $project) {
            // Each project has its own endpoint on a Platform.sh region.
            $projects[] = new Project($project, $project['endpoint'], $client);
        }

        return $projects;
    }
public function getProjects($reset = false)
    {
        $data = $this->getAccountInfo($reset);
        $client = $this->connector->getClient();
        $projects = [];
        foreach ($data['projects'] as $project) {
            // Each project has its own endpoint on a Platform.sh region.
            $projects[] = new Project($project, $project['endpoint'], $client);
        }

        return $projects;
    }
public function getProjects ( $ reset = false ) { $ data = $ this -> getAccountInfo ( $ reset ) ; $ client = $ this -> connector -> getClient ( ) ; $ projects = [ ] ; foreach ( $ data [ 'projects' ] as $ project ) { // Each project has its own endpoint on a Platform.sh region. $ projects [ ] = new Project ( $ project , $ project [ 'endpoint' ] , $ client ) ; } return $ projects ; }
Get the logged-in user's projects.

@param bool $reset

@return Project[]
Get the logged - in user s projects .