jrmadsen67 / mahana-mailinator-api
PHP wrapper for the Mailinator.com API
Installs: 7 964
Dependents: 1
Suggesters: 0
Security: 0
Stars: 4
Watchers: 2
Forks: 1
Open Issues: 0
Requires
- php: >=5.2.1
This package is auto-updated.
Last update: 2024-10-08 13:38:12 UTC
README
Php Mailinator API library
Token
Create a Mailinator account, login, and find your token at https://www.mailinator.com/settings.jsp
Requirements
You need to have the cURL-extension installed on your server. PHP 5.4 will suffice.
Installation
composer require jrmadsen67/mahana-mailinator-api
Usage
$token = 'whateveryourtokenisfromabove'; $mahanaMailinator = new jrmadsen67\MahanaMailinatorAPI\MahanaMailinatorAPI($token); //Get messages in inbox// $inbox = 'myinbox'; $messages = $mahanaMailinator->fetchInbox($inbox); //Get a message// $message = $mahanaMailinator->fetchMail($msgId); //Delete a message// $status = $mahanaMailinator->deleteMail($msgId);