lib/GitHub/Receiver/Repositories/Collaborators.php
public function addUserAsCollaborator(string $username): array
    {
        return $this->getApi()->request($this->getApi()->sprintf('/repos/:owner/:repo/collaborators/:username',
            $this->getRepositories()->getOwner(), $this->getRepositories()->getRepo(), $username), Request::METHOD_PUT);
    }
public function addUserAsCollaborator(string $username): array
    {
        return $this->getApi()->request($this->getApi()->sprintf('/repos/:owner/:repo/collaborators/:username',
            $this->getRepositories()->getOwner(), $this->getRepositories()->getRepo(), $username), Request::METHOD_PUT);
    }
public function addUserAsCollaborator ( string $ username ) : array { return $ this -> getApi ( ) -> request ( $ this -> getApi ( ) -> sprintf ( '/repos/:owner/:repo/collaborators/:username' , $ this -> getRepositories ( ) -> getOwner ( ) , $ this -> getRepositories ( ) -> getRepo ( ) , $ username ) , Request :: METHOD_PUT ) ; }
Add user as a collaborator

@link https://developer.github.com/v3/repos/collaborators/#add-collaborator

@param string $username

@return array
Add user as a collaborator