PHP code example of rpsimao / laravel-pushbullet

1. Go to this page and download the library: Download rpsimao/laravel-pushbullet 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/ */

    

rpsimao / laravel-pushbullet example snippets


PushBullet::devices();

PushBullet::device('Chrome')->note('Remember', 'Buy some eggs.');

PushBullet::device('Chrome')->device('Galaxy S4')->note('Remember', 'Buy some eggs.');
// or
PushBullet::device('Chrome', 'Galaxy S4')->note('Remember', 'Buy some eggs.');
// or using an array
PushBullet::device(['Chrome', 'Galaxy S4'])->note('Remember', 'Buy some eggs.');
// or using a collection
PushBullet::device(Device::all()->pluck('name'))->note('Remember', 'Buy some eggs.');

PushBullet::all()->note('Remember', 'Buy some eggs.');

PushBullet::user('[email protected]')->note('Remember', 'Buy some eggs.');

PushBullet::user('[email protected]')->user('[email protected]')->note('Remember', 'Buy some eggs.');
// or
PushBullet::user('[email protected]', '[email protected]')->note('Remember', 'Buy some eggs.');
// or using an array
PushBullet::user(['[email protected]', '[email protected]'])->note('Remember', 'Buy some eggs.');
// or using a collection
PushBullet::user(User::findMany([1, 2, 3])->pluck('email'))->note('Remember', 'Buy some eggs.');

PushBullet::device('Chrome')->note('Musings', 'Why are fudgy brownies better than cakey brownies?');

PushBullet::device('Chrome')->link('Look It Up', 'http://google.com', 'I hear this is a good site for finding things.');

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

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

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

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

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

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

'providers' => array(
    //...
    rpsimao\LaravelPushbullet\LaravelPushbulletServiceProvider::class,
),


'aliases' => array(
    //...
    'PushBullet' => rpsimao\LaravelPushbullet\LaravelPushbulletFacade::class,
),