MailTm class allows you to use all HTTP methods. You can create mail.tm accounts, get messages, delete account, all this using the mail.tm api
$MailTm::CreateAccount();
$MailTm::GetToken('mail', 'password');
$MailTm::GetMessageId('msgID', 'jwtToken');
$MailTm::Delete('jwtToken', 'Account Id');
To install the source code:
$ git clone https://github.com/Mateodioev/mail.tm.git
And include it in your scripts:
require_once "mailtm.php";
$MailTm = new MailTm;