lib/GitHub/Receiver/Organizations/Members.php
public function removeOrganizationMembership(string $org, string $username): bool
    {
        $this->getApi()->setAccept('application/vnd.github.moondragon+json');

        $this->getApi()->request($this->getApi()->sprintf('/orgs/:org/memberships/:username', $org, $username),
            Request::METHOD_DELETE);

        if ($this->getApi()->getHeaders()['Status'] == '204 No Content') {
            return true;
        }

        return false;
    }
public function removeOrganizationMembership(string $org, string $username): bool
    {
        $this->getApi()->setAccept('application/vnd.github.moondragon+json');

        $this->getApi()->request($this->getApi()->sprintf('/orgs/:org/memberships/:username', $org, $username),
            Request::METHOD_DELETE);

        if ($this->getApi()->getHeaders()['Status'] == '204 No Content') {
            return true;
        }

        return false;
    }
public function removeOrganizationMembership ( string $ org , string $ username ) : bool { $ this -> getApi ( ) -> setAccept ( 'application/vnd.github.moondragon+json' ) ; $ this -> getApi ( ) -> request ( $ this -> getApi ( ) -> sprintf ( '/orgs/:org/memberships/:username' , $ org , $ username ) , Request :: METHOD_DELETE ) ; if ( $ this -> getApi ( ) -> getHeaders ( ) [ 'Status' ] == '204 No Content' ) { return true ; } return false ; }
Remove organization membership

@link https://developer.github.com/v3/orgs/members/#remove-organization-membership

@param string $org
@param string $username

@return bool
@throws \Exception
Remove organization membership