Best paid membership management php

Hello , I am looking for a good paid membership management system , that I could use to manage a many online thematic chatroom with a trial period when register for the first time. after purchase the new member is redirect to a link or groups of links where he can access to the chatroom , here the chat room will be an external application. I you know any php script which can do the job please let me know. Is urgent .