wizjo/freshmail

Installs: 4 348

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 1

Open Issues: 0

pkg:composer/wizjo/freshmail

v1.0.0 2016-07-11 08:33 UTC

This package is auto-updated.

Last update: 2025-10-09 22:02:41 UTC


README

A PHP library that easies usage of FreshMail REST API

Installation

The easiest way to get install the library is by using composer:

composer require wizjo/freshmail

Basic usage

$fm = new \Wizjo\FreshMail(API_KEY, API_SECRET);

//get request
$action = $fm->request('/ping');
$data = $action->getData();
echo $data['data']; //will print "pong"

//post request
$action = $fm->request('/ping', ['test' => 'data']);
$data = $action->getData();
echo $data['data']['test']; //will print "data"