2017 © Pedro Peláez
 

library php-localytics-push

A PHP client for sending push notifications via the Localytics Push Notification service

image

superbalist/php-localytics-push

A PHP client for sending push notifications via the Localytics Push Notification service

  • Monday, February 6, 2017
  • by matthewgoslett
  • Repository
  • 22 Watchers
  • 0 Stars
  • 91 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 1 % Grown

The README.md

php-localytics-push

A PHP client for sending push notifications via the Localytics Push Notification service, (*1)

Author Build Status StyleCI Software License Packagist Version Total Downloads, (*2)

Installation

composer require superbalist/php-localytics-push

Integrations

Want to get started quickly? Check out some of these integrations:, (*3)

  • Laravel - https://github.com/Superbalist/laravel-localytics-push

Usage

$client = new GuzzleHttp\Client();
$appID = 'your-app-id';
$apiKey = 'your-api-key';
$apiSecret = 'your-api-secret';

$localytics = new \Superbalist\LocalyticsPush\LocalyticsPush($client, $appID, $apiKey, $apiSecret);
$message = [
    'target' => [
        'profile' => [
            'criteria' => [
                [
                    'key' => '$email',
                    'scope' => 'Organization',
                    'type' => 'string',
                    'op' => 'in',
                    'values' => [
                        'matthew@superbalist.com',
                    ]
                ]
            ],
            'op' => 'and',
        ],
    ],
    'alert' => [
        'title' => 'Message Title',
        'body' => 'This is my message content!',
    ]
];
$response = $localytics->pushMessage('profile', $message);

The Versions

06/02 2017

dev-master

9999999-dev

A PHP client for sending push notifications via the Localytics Push Notification service

  Sources   Download

MIT

The Requires

 

The Development Requires

by Superbalist.com a division of Takealot Online (Pty) Ltd

19/10 2016

1.0.0

1.0.0.0

A PHP client for sending push notifications via the Localytics Push Notification service

  Sources   Download

MIT

The Requires

 

The Development Requires

by Superbalist.com a division of Takealot Online (Pty) Ltd