lib/Github/Api/Repo.php
public function topics($username, $repository)
    {
        //This api is in preview mode, so set the correct accept-header
        $this->acceptHeaderValue = 'application/vnd.github.mercy-preview+json';

        return $this->get('/repos/'.rawurldecode($username).'/'.rawurldecode($repository).'/topics');
    }
public function topics($username, $repository)
    {
        //This api is in preview mode, so set the correct accept-header
        $this->acceptHeaderValue = 'application/vnd.github.mercy-preview+json';

        return $this->get('/repos/'.rawurldecode($username).'/'.rawurldecode($repository).'/topics');
    }
public function topics ( $ username , $ repository ) { //This api is in preview mode, so set the correct accept-header $ this -> acceptHeaderValue = 'application/vnd.github.mercy-preview+json' ; return $ this -> get ( '/repos/' . rawurldecode ( $ username ) . '/' . rawurldecode ( $ repository ) . '/topics' ) ; }
List all topics for a repository.

@link https://developer.github.com/v3/repos/#list-all-topics-for-a-repository

@param string $username
@param string $repository

@return array
List all topics for a repository .