bcismariu/ongage-php

Simple PHP wrapper for Ongage API

v0.1.0 2016-03-28 09:47 UTC

This package is auto-updated.

Last update: 2024-05-13 05:07:49 UTC


README

Ongage is a vendor agnostc email marketing platform.

This is a simple PHP implementation of the API calls.

Installation

Update your composer.json file

{
    "require": {
        "bcismariu/ongage-php": "0.*"
    }
}

Run composer update

Usage

use Bcismariu\Ongage\Ongage;

$ongage = new Ongage('USERNAME', 'PASSWORD', 'ACCOUNT_CODE');
$ongage->useList('YOUR_LIST_ID')->addContact([
    'email'  => 'contact.email@domain.com',
    'name'   => 'First Contact'
]);

Read the official API for more details regarding parameters and responses.

Contributions

This is a very basic implementation that can only handle email validations. Any project contributions are welcomed!