dev-master
9999999-devPHP wrapper for the Inbox API
MIT
The Requires
- php >=5.4
- guzzlehttp/guzzle ~4.0
The Development Requires
by Ross Masters
PHP wrapper for the Inbox API
A PHP wrapper around the Inbox API., (*1)
This Composer package is named rmasters/inbox
on Packagist. You can install it:, (*3)
composer require "rmasters/inbox:~1"
,require
section: "rmasters/inbox": "~1"
.This package is early on in development - expect the API to change a little until a v1.0 stable release., (*4)
Take a look over the API documentation first, to familiarise yourself with the Inbox concepts., (*5)
// Specify a custom server, or use inboxapp.com by default $inbox = new Inbox\Inbox('http://127.0.0.1:5555/'); // Get namespace (email account) information $accountId = 'awa6ltos76vz5hvphkp8k17nt'; $account = $inbox->account($accountId); // => Account // Get messages $inbox->messages($account)->all(); // => Message[] $inbox->messages($accountId)->get($messageId); // => Message
A few notes and things to watch out for:, (*6)
namespace
is a reserved word in PHP, Namespaces are referred to as Accounts.PHP wrapper for the Inbox API
MIT