View on GitHub

randomhost/notifymyandroid

Implements a NotifyMyAndroid.com API client without using cURL.

Download this project as a .zip file Download this project as a tar.gz file

Build Status

Introduction

This package provides a client for communicating with the Notify My Android API.

Usage

A basic approach at using this package could look like this:

<?php
namespace randomhost\NotifyMyAndroid;

require_once realpath(__DIR__ . '/../../vendor') . '/autoload.php';

$client = new Client();
$client
    ->addApiKey('recipientApiKey')
    ->notify(
        'randomhost/notifymyandroid',
        'Sample Event',
        'Sample description.'
    );

This will instantiate the API client and send a notification to the NMA user which the given API key belongs to.

For a more detailed usage example, see src/www/notify.php.

License

See LICENSE.txt for full license details.