PHP code example of vdbf / pushover-php

1. Go to this page and download the library: Download vdbf/pushover-php library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

vdbf / pushover-php example snippets




//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);


    'vdbf/pushover-php' : '0.0.2'

    'providers' => array(
      ...
      'Vdbf\Pushover\Support\Laravel\PushoverProvider'
    )
    
    'aliases' => array(
      ...
      'Pushover' => 'Vdbf\Pushover\Support\Laravel\PushoverFacade'
    )

    'pushover' => array(
      'token' => YOUR_PUSHOVER_APP_TOKEN
    )