The code example in the documentation seems incorrect. It should use -> instead of . like $channel->addMembers([...]). https://getstream.io/chat/docs/php/?language=php#adding-members-or-moderators 