Implements an NotifyMyAndroid.com API client without using cURL.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
.travis.yml
LICENSE.txt
README.md
composer.json
phpunit.xml.dist

README.md

Build Status

randomhost/notifymyandroid

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.