2017 © Pedro Peláez
 

library phpushbullet

PHP API wrapper for Pushbullet.

image

joetannenbaum/phpushbullet

PHP API wrapper for Pushbullet.

  • Wednesday, June 15, 2016
  • by joetannenbaum
  • Repository
  • 7 Watchers
  • 30 Stars
  • 7,085 Installations
  • PHP
  • 5 Dependents
  • 0 Suggesters
  • 15 Forks
  • 0 Open issues
  • 9 Versions
  • 10 % Grown

The README.md

PHPushbullet

Latest Version Software License Build Status Coverage Status Quality Score Total Downloads, (*1)

A PHP library for the Pushbullet API., (*2)

Table of Contents

Installation

Using composer:, (*3)

{
    "require": {
        "joetannenbaum/phpushbullet": "~1.0"
    }
}

PHPushbullet takes one optional parameter, your Pushbullet access token:, (*4)

require_once('vendor/autoload.php');

$pushbullet = new PHPushbullet\PHPushbullet('YOUR_ACCESS_TOKEN_HERE');

If you do not wish to put your access token in your code (understandable), simply set it to the environment variable pushbullet.access_token and PHPushbullet will automatically pick it up., (*5)

Listing Devices

To list the available devices on your account:, (*6)

$pushbullet->devices();

This will return an array of objects with all of the device information., (*7)

Pushing

To Devices

When pushing a to a device, simply use the device's nickname or their iden from the list above., (*8)

To push to a single device:, (*9)

$pushbullet->device('Chrome')->note('Remember', 'Buy some eggs.');

To push to multiple devices:, (*10)

$pushbullet->device('Chrome')->device('Galaxy S4')->note('Remember', 'Buy some eggs.');
// or
$pushbullet->device('Chrome', 'Galaxy S4')->note('Remember', 'Buy some eggs.');
// or
$pushbullet->device(['Chrome', 'Galaxy S4'])->note('Remember', 'Buy some eggs.');

To Users

When pushing a to a user, simply use the user's email address:, (*11)

To push to a single user:, (*12)

$pushbullet->user('joe@example.com')->note('Remember', 'Buy some eggs.');

To push to multiple users:, (*13)

$pushbullet->user('joe@example.com')->user('anne@example.com')->note('Remember', 'Buy some eggs.');
// or
$pushbullet->user('joe@example.com', 'anne@example.com')->note('Remember', 'Buy some eggs.');
// or
$pushbullet->user(['joe@example.com', 'anne@example.com'])->note('Remember', 'Buy some eggs.');

Types

Notes

Arguments:, (*14)

  • Title
  • Body
$pushbullet->device('Chrome')->note('Musings', 'Why are fudgy brownies better than cakey brownies?');

Arguments:, (*15)

  • Title
  • URL
  • Body (optional)
$pushbullet->device('Chrome')->link('Look It Up', 'http://google.com', 'I hear this is a good site for finding things.');

Addresses

Arguments: + Name + Address, (*16)

$pushbullet->device('Chrome')->address('The Hollywood Sign', '4059 Mt Lee Drive Hollywood, CA 90068');

Alternatively, you can pass in an associative array:, (*17)

$address = [
  'address' => '4059 Mt Lee Drive',
  'city'    => 'Hollywood',
  'state'   => 'CA',
  'zip'     => '90068',
];

$pushbullet->device('Chrome')->address('The Hollywood Sign', $address);

Lists

Arguments: + Title + Items (array), (*18)

$items = [
  'Socks',
  'Pants',
  'Keys',
  'Wallet',
];

$pushbullet->device('Chrome')->list('Do Not Forget', $items);

Files

Arguments: + File Name + File URL (must be publicly available) + Body (optional), (*19)

$pushbullet->device('Chrome')->file('The Big Presentation', 'http://example.com/do-not-lose-this.pptx', 'Final version of slides.');

The Versions

15/06 2016

dev-master

9999999-dev

PHP API wrapper for Pushbullet.

  Sources   Download

MIT

The Requires

 

The Development Requires

api php notification push pushbullet bullet

15/06 2016

1.2.2

1.2.2.0

PHP API wrapper for Pushbullet.

  Sources   Download

MIT

The Requires

 

The Development Requires

api php notification push pushbullet bullet

22/03 2016

1.2.1

1.2.1.0

PHP API wrapper for Pushbullet.

  Sources   Download

MIT

The Requires

 

The Development Requires

api php notification push pushbullet bullet

30/01 2015

1.2.0

1.2.0.0

PHP API wrapper for Pushbullet.

  Sources   Download

MIT

The Requires

 

The Development Requires

api php notification push pushbullet bullet

06/11 2014

1.1.0

1.1.0.0

PHP API wrapper for Pushbullet.

  Sources   Download

MIT

The Requires

 

The Development Requires

api php notification push pushbullet bullet

09/09 2014

1.0.2

1.0.2.0

PHP API wrapper for Pushbullet.

  Sources   Download

MIT

The Requires

 

The Development Requires

api php notification push pushbullet bullet

09/09 2014

1.0.1

1.0.1.0

PHP API wrapper for Pushbullet.

  Sources   Download

MIT

The Requires

 

The Development Requires

api php notification push pushbullet bullet

09/09 2014

1.0.0

1.0.0.0

PHP API wrapper for Pushbullet.

  Sources   Download

MIT

The Requires

 

The Development Requires

api php notification push pushbullet bullet

27/08 2014

0.1.0

0.1.0.0

PHP API wrapper for Pushbullet.

  Sources   Download

The Requires

 

The Development Requires