PHP Imap client which supports multiple accounts


I am looking for a PHP based IMAP client with these requirements:

  • User accounts (not same as imap email accounts)

  • Each user can add multiple IMAP emails to his account and check/use them.

Is there any solution for my requirements. I checked Squirrelmail and roundcube but I am not sure they can do this.

Otherwise I will need to either develop a system from scratch or modify an existing one to do my job. I hesitate to develop myself as it will take months if not years to make it stable and bug free.