mooglepost / mooglepost-api-php-client
PHP client library for MooglePost API
Installs: 7 121
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: ^7.2.5 || ^8.0
- ext-json: *
- guzzlehttp/guzzle: ^7.0
- symfony/polyfill-php80: *
Requires (Dev)
- overtrue/phplint: ^2.2
- phpunit/phpunit: ^8.5
- squizlabs/php_codesniffer: ^3.5
README
PHP client library for MooglePost API
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 !');