2017 © Pedro Peláez
 

library easy-mailinator

PHP wrapper library for Mailinator.com API

image

cnorton-webdev/easy-mailinator

PHP wrapper library for Mailinator.com API

  • Monday, November 28, 2016
  • by kicktd
  • Repository
  • 0 Watchers
  • 0 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

easy_mailinator

Software License, (*1)

PHP wrapper library for the Mailinator API, (*2)

API Token

To obtain an API token for Mailinator, you must first create a Mailinator account. API access then can be obtained by purchasing an upgrade plan here and then obtain your API token at https://www.mailinator.com/settings.jsp, (*3)

Requirements

In order to use this, you must have the cURL extension installed on your server. PHP 5.5 or higher recommended., (*4)

Installation

composer require cnorton-webdev/easy-mailinator, (*5)

Public inbox example usage

$token = 'your_token_goes_here';

$mail = new easy_mailinator($token);

// Retrieve messages for an inbox

$name = 'some_name_here';

$messages = $mail->inbox($name);

// Show message count - MUST be called AFTER getting messages otherwise will return 0

$message_count = $mail->get_mail_count();

// Get message content

$message = $mail->get($msg_id);

// Delete a message

$is_deleted = $mail->delete($msg_id);

// Retrieve saved messages

$saved_messages = $mail->saved();

// Get saved messages count - MUST be called AFTER getting messages otherwise will return 0

$saved_count = $mail->get_saved_count();

Private domain example usage

$token = 'your_token_goes_here';

$mail = new easy_mailinator($token, true);

// Retrieve messages for private domain inbox

$messages = $mail->private_domain();

// Show private message count - MUST be called AFTER getting messages

$private_message_count = $mail->get_private_count();

// Retrieve and delete messages the same as public inbox example

The Versions

28/11 2016

dev-master

9999999-dev

PHP wrapper library for Mailinator.com API

  Sources   Download

MIT

The Requires

  • php >=5.2.1

 

by Christopher Norton

28/11 2016

v1.1

1.1.0.0

PHP wrapper library for Mailinator.com API

  Sources   Download

MIT

The Requires

  • php >=5.2.1

 

by Christopher Norton