Download the PHP package sqmk/pushy without Composer

On this page you can find all versions of the php package sqmk/pushy. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package pushy

Pushy - Pushover.net client for PHP

Latest Stable Version Build Status

Introduction

Pushy is a PHP client that makes communicating with Pushover.net's API simple.

Pushy makes full use of Pushover's API. This includes sending messages, validating users, and retrieving message statuses.

Interested in sending real-time mobile notifications to your iOS or Android device(s) from your web app? Take a look at Pushover.net. API usage is free, and extremely easy to use with Pushy!

Requirements

Installation

You can install Pushy by using composer. Simply add the dependency to your composer.json configuration:

See composer and packagist for more information.

Usage

Assuming your composer generated or custom autoloader can load Pushy files properly, using it is simple!

For those interested in the complete API, you can check out the auto-generated documentation at GitApiDoc.

Initializing client

In order to send a message, verify a user, or get a message status, you'll first need an application API key. You can get an API key by registering a new application on Pushover.net.

Once you acquire your application key, you can now instantiate a Pushy Client object.

Sending messages

You have a client instantiated, now you can send a message. But first, you want to build a user object for the receiving user.

You'll need to get your user identifier (or user key) at Pushover.net. You'll also want a registered device name if you want to send a message to a single device. You can now create a user object with these details.

After creating a user, you have enough to start creating a message.

To send the message, pass the message object to the client.

If no exceptions are thrown, the message was sent successfully. No data is returned by the sendMessage method unless the message has an emergency priority.

Emergency priority messages

You can send a message with an emergency priority and get a receipt id. Emergency priorities also have additional options.

With a receipt Id, you can cancel messages with an emergency priority:

Priorities

The list of available priorities in Pushy\Priority:

Sounds

The list of available sounds in Pushy\Sound:

Verifying a user

A user object can be verified with Pushover prior to sending out messages.

Getting message status

When using an emergency priority with a message, you get a receipt code after sending the message successfully. You can get the status of the message by sending the receipt code by way of getMessageStatus.

Getting application limitations

Pushover.net allows you to send 7,500 messages per month for each application you own. Sending more than that limit will result in rejected requests from the service.

Pushy provides 3 convenience methods on the client to retrieve your app's message limit, remaining messages, and timestamp for when the limit is reset. These values are available after making any other request to Pushover.

Command-line Interface

Included in Pushy is a convenient script to send messages from the command line.

You can call it like so:


All versions of pushy with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
ext-curl Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package sqmk/pushy contains the following files

Loading the files please wait ....