randomhost/notifymyandroid

NotifyMyAndroid.com API client (without cURL).

0.0.2 2016-10-08 11:56 UTC

README

Build Status

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.