2017 © Pedro Peláez
 

library laravel-localytics-push

A Laravel library for sending push notifications via the Localytics Push Notification service

image

superbalist/laravel-localytics-push

A Laravel library for sending push notifications via the Localytics Push Notification service

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

The README.md

laravel-localytics-push

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

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

This package is a wrapper bridging php-localytics-push into Laravel., (*3)

Installation

composer require superbalist/laravel-localytics-push

The package has a default configuration which uses the following environment variables., (*4)

LOCALYTICS_APP_ID=null
LOCALYTICS_API_KEY=null
LOCALYTICS_API_SECRET=null

To customize the configuration file, publish the package configuration using Artisan., (*5)

php artisan vendor:publish --provider="Superbalist\LaravelLocalyticsPush\LocalyticsServiceProvider"

You can then edit the generated config at app/config/localytics.php., (*6)

Register the service provider in app.php, (*7)

'providers' => [
    // ...
    Superbalist\LaravelLocalyticsPush\LocalyticsServiceProvider::class,
]

Register the facade in app.php, (*8)

'aliases' => [
    // ...
    'Localytics' => Superbalist\LaravelLocalyticsPush\LocalyticsFacade::class,
]

Usage

$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!',
    ]
];
Localytics::pushMessage('profile', $message);

The Versions

06/02 2017

dev-master

9999999-dev

A Laravel library for sending push notifications via the Localytics Push Notification service

  Sources   Download

MIT

The Requires

 

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

06/02 2017

dev-analysis-8brNA4

dev-analysis-8brNA4

A Laravel library for sending push notifications via the Localytics Push Notification service

  Sources   Download

MIT

The Requires

 

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

19/10 2016

1.0.0

1.0.0.0

A Laravel library for sending push notifications via the Localytics Push Notification service

  Sources   Download

MIT

The Requires

 

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