thepieterdc/mailinator_php
最新稳定版本:v1.0.3
Composer 安装命令:
composer require thepieterdc/mailinator_php
包简介
PHP wrapper for the Mailinator.com API
README 文档
README
PHP wrapper for the Mailinator.com API
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.2 will suffice.
Usage
require_once 'src/Mailinator/Mailinator.php'; $mailinator = new Mailinator('my_token'); //Get messages in inbox// try { print_r($mailinator->inbox('randominbox')); } catch(Exception $e) { // Process the error echo "Something went wrong: " . $e->getMessage(); } //Get a message// try { print_r($mailinator->message('mail-id')); } catch(Exception $e) { // Process the error echo "Something went wrong: " . $e->getMessage(); } //Delete a message// try { print_r($mailinator->delete('mail-id')); } catch(Exception $e) { // Process the error echo "Something went wrong: " . $e->getMessage(); }
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 55.9k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 10
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-11-18