public function getList($user, $repo, $page = 0, $limit = 0)
	{
		// Build the request path.
		$path = '/repos/' . $user . '/' . $repo . '/releases';

		// Send the request.
		$response = $this->processResponse($this->client->get($this->fetchUrl($path, $page, $limit)));

		$releases = array();

		if (is_array($response))
		{
			foreach ($response as $release)
			{
				$releases[$release->tag_name] = $release;
			}
		}

		return $releases;
	}
public function getList($user, $repo, $page = 0, $limit = 0)
	{
		// Build the request path.
		$path = '/repos/' . $user . '/' . $repo . '/releases';

		// Send the request.
		$response = $this->processResponse($this->client->get($this->fetchUrl($path, $page, $limit)));

		$releases = array();

		if (is_array($response))
		{
			foreach ($response as $release)
			{
				$releases[$release->tag_name] = $release;
			}
		}

		return $releases;
	}
public function getList ( $ user , $ repo , $ page = 0 , $ limit = 0 ) { // Build the request path. $ path = '/repos/' . $ user . '/' . $ repo . '/releases' ; // Send the request. $ response = $ this -> processResponse ( $ this -> client -> get ( $ this -> fetchUrl ( $ path , $ page , $ limit ) ) ) ; $ releases = array ( ) ; if ( is_array ( $ response ) ) { foreach ( $ response as $ release ) { $ releases [ $ release -> tag_name ] = $ release ; } } return $ releases ; }
Method to list all releases.

@param   string   $user       The name of the owner of the GitHub repository.
@param   string   $repo       The name of the GitHub repository.
@param   integer  $page       The page number from which to get items.
@param   integer  $limit      The number of items on a page.

@return  array  An associative array of releases keyed by the tag name.

@since   __DEPLOY_VERSION__
@throws  \DomainException
Method to list all releases .