2017 © Pedro Peláez
 

library pushe

php wrapper for pushe.co push notification

image

amiriun/pushe

php wrapper for pushe.co push notification

  • Tuesday, February 20, 2018
  • by amircup2006
  • Repository
  • 1 Watchers
  • 2 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Pushe.co (Push Notification Service)

Build Status Coverage Status, (*1)

Instalation

To install via Composer , use the command bellow:, (*2)

composer require amiriun/pushe

Usage

use \Amiriun\Pushe\Configuration;
use \Amiriun\Pushe\Filter;
use \Amiriun\Pushe\Pushe;

// Firstly,you have to set your configuration
Configuration::make()->setToken("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx");
Configuration::make()->setIsAsync(true);
Configuration::make()->setApplicationsPackageName(["com.example.myApp"]);

// If you'd like to filter push to some users with some parameters you can use filter:
$filter = (new Filter())
        ->byInstanceId(['xxxxx','yyyyy']) // Filter by instance id of web push users
        ->byAndroidId(['xxx','yyy']) // Filter by android id of android users
        ->byBrand(['lg']) // Filter by mobile's brand of users
        ->byOperator(['mci']) // Filter by users who has specify operator
        ->byMobileNetwork(['lte']) // Filter by network of users
        ->byPushIdOrIMEI('nnnnn'); // Filter by user's push id or imei


// Finally you can fill your notification data to send
$pushe = new Pushe();
$pushe->setTitle('titr')
    ->setContent('badane')
    ->filter($filter) // optional
    ->setVisible() // optional
    ->send();

The Versions

20/02 2018

dev-master

9999999-dev

php wrapper for pushe.co push notification

  Sources   Download

MIT

The Requires

 

The Development Requires

notification push push notification php push php notification laravel notification