2017 © Pedro Peláez
 

library push

Pushwoosh for Laravel

image

tzsk/push

Pushwoosh for Laravel

  • Monday, December 12, 2016
  • by kazimahmed
  • Repository
  • 2 Watchers
  • 4 Stars
  • 133 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 5 % Grown

The README.md

push

Latest Version on Packagist ![Software License][ico-license] Code Climate Quality Score ![Total Downloads][ico-downloads], (*1)

This is a Laravel 5 Package for Pushwoosh Notification Integration. This package currently supports IOS & Android other support is coming soon. This package is built upon gomoob/php-pushwoosh package. With feew changes and Laravel 5 Compatibility., (*2)

This package is compatible with Laravel 5.2 or Higher. Old version support (Laravel 5.1.*) is coming soon for those who are still using PHP 5.4.*, (*3)

Install

Via Composer, (*4)

``` bash $ composer require tzsk/push, (*5)


## Configure ` config/app.php ` ```php 'providers' => [ ... Tzsk\Push\Provider\PushServiceProvider::class, ... ], 'aliases' => [ ... 'Push' => Tzsk\Push\Facade\Push::class, ... ],

To publish the Configuration file in config/push.php Run:, (*6)

php artisan vendor:publish

Usage

``` php use Tzsk\Push\Facade\Push; ... $response = Push::send("Message Text", function($push) { $push->setToken("Device Token"); # OR... $push->setTokens(["Device 1", "Device 2"]) ->setTitle("You have a new notification") # For Android. ->setBody("Message Text") # To override the Message. Optional. ->setBadge(1) # Default: 1. ->setPayload(["type" => "ANYTHING", "data" => [] ]) # Default: [] ->setIcon("http://path/to/icon.png") # For Android. ->setSmallIcon("pw_notification.png") # For Android. ->setBanner("http://path/to/banner.png") # For Android. Optional. ->setSound("res/sound/file/path") # Default: "default" ->setPriority(1) # Default: 1 ->setVibration(1) # Default: 1 ->setIbc("#ffffff"); # Icon Background Color. Default: '#ffffff' });, (*7)

if ($response->isOk()) { # Successfully Sent. } else { # Something went wrong. echo $response->getStatusMessage(); # Get failure message. } ... ```, (*8)

Change log

Please see CHANGELOG for more information what has changed recently., (*9)

Contributing

Please see CONTRIBUTING and CONDUCT for details., (*10)

Security

If you discover any security related issues, please email mailtokmahmed@gmail.com instead of using the issue tracker., (*11)

Credits

License

The MIT License (MIT). Please see License File for more information., (*12)

The Versions

12/12 2016

dev-master

9999999-dev https://github.com/tzsk/push

Pushwoosh for Laravel

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel push pushwoosh tzsk pushwoosh laravel pushwoosh package laravel

25/11 2016
25/11 2016