2017 © Pedro Peláez
 

library pushover-php

image

vdbf/pushover-php

  • Monday, February 9, 2015
  • by eelkevdbos
  • Repository
  • 2 Watchers
  • 1 Stars
  • 10 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

pushover-php

Pushover REST API implementation in PHP, (*1)

Installation

All you have to do is execute: composer require vdbf/pushover-php 0.0.2, (*2)

Alternatively, you can edit composer.json and add the following entry to the require section:, (*3)

    'vdbf/pushover-php' : '0.0.2'

Example usage


require dirname(__DIR__) . '/vendor/autoload.php'; //setup pushover client $pusher = new \Vdbf\Pushover\Client(array('token' => $argv[1]), new \GuzzleHttp\Client()); //compose a message $message = new \Vdbf\Pushover\Message($argv[2], $argv[3]); //push a message $pusher->send($message);

Integration

At the moment of writing, integration for Laravel 4.* is supported. A service provider and a facade class are supplied. Installation is done in 2 simple steps after the general installation steps:, (*4)

  1. edit app/config/app.php to add the service provider and the facade class
    'providers' => array(
      ...
      'Vdbf\Pushover\Support\Laravel\PushoverProvider'
    )

    'aliases' => array(
      ...
      'Pushover' => 'Vdbf\Pushover\Support\Laravel\PushoverFacade'
    )
  1. edit app/config/services.php (supplied by default from L4.2) to add a token setting
    'pushover' => array(
      'token' => YOUR_PUSHOVER_APP_TOKEN
    )

The Versions

09/02 2015

dev-master

9999999-dev

  Sources   Download

The Requires

 

The Development Requires