mooglepost/mooglepost-api-php-client

PHP client library for MooglePost API

1.3.1 2023-05-27 11:50 UTC

This package is auto-updated.

Last update: 2024-03-27 14:01:17 UTC


README

PHP client library for MooglePost API

Latest Stable Version License

Installation

Install directly via Composer:

$ composer require mooglepost/mooglepost-api-php-client

Basic Usage

<?php

require_once 'vendor/autoload.php';

$mglpst = new MooglePost\Client('YOUR_API_KEY');

try {
	$mglpst->send('email@example.com', 'template-name');
} catch (Exception $e) {
	die('A MooglePost error occurred: '.$e->getMessage());
}

die('Your email has been sent !');