Download the PHP package donatj/pushover without Composer
On this page you can find all versions of the php package donatj/pushover. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download donatj/pushover
More information about donatj/pushover
Files in donatj/pushover
Package pushover
Short Description Simple Pushover.net client
License MIT
Informations about the package pushover
Pushover PHP
Pushover PHP is a very light, simple API wrapper for the Pushover API written for PHP.
Requirements
- php: >=7.3
- ext-json: *
Installing
Install the latest version with:
Usage
Documentation
For documentation about the protocol specifics, see the official Pushover API Documentation.
On success Pushover->send
returns a truth-y array like:
On failure Pushover->send
returns false which allows simple
Class: \donatj\Pushover\Exceptions\ResponseException
Class: \donatj\Pushover\Options
Contains available option keys for the Pushover API
Class: \donatj\Pushover\Priority
Contains all legal values for 'priority'
Class: \donatj\Pushover\Pushover
Dead Simple API Interface for Pushover Messages
Method: Pushover->__construct
Create a pushover object
Parameters:
- string
$token
- The application API token - string
$user
- Your user key - string
$apiUrl
- Optionally change the API URL
Method: Pushover->send
Send the pushover message
Parameters:
- string
$message
- The message to send - array<string,mixed>
$options
- Optional configuration settings
Throws: \donatj\Pushover\Exceptions\ResponseException
- On failure to connect or decode the response
Returns:
- array - The decoded JSON response as an associative array
Class: \donatj\Pushover\Sounds
Contains legal values for 'sound'
All versions of pushover with dependencies
ext-json Version *