2017 © Pedro Peláez
 

library platinium

Openium Web Toolkit for Symfony Project

image

openium/platinium

Openium Web Toolkit for Symfony Project

  • Thursday, July 19, 2018
  • by openium
  • Repository
  • 2 Watchers
  • 0 Stars
  • 190 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 78 % Grown

The README.md

Platinium API

Caution

this package is deprecated, (*1)

please use platinium-php-bundle, (*2)


Install with composer

composer require openium/platinium

How to use it

When you create your entity, you have to implements PushEntityInterface in your entity or use Push entity., (*3)

Push without geolocalization

<?php
// Entity to push
$myEntity = new Push("message");

// Vars
$platiniumUrl = '...';
$platiniumServer = '...';
$apiServerId = '...';
$apiServerKey = '...';
$apiServerTokenDev = '...';
$apiServerTokenProd = '...';

// Prepare Push Service
$pushService = new PushService();
$pushService->setServerInfo(
    $platiniumUrl,
    $platiniumServer,
    $apiServerId,
    $apiServerKey,
    $apiServerTokenDev,
    $apiServerTokenProd
);

// Push
$pushGroups = ['myGroups'];
$langs = ['fr'];

$pushService->push($myEntity, $pushGroups, $langs);

Push with geolocalization

<?php
// Entity to push
$myEntity = new Push("message");

// Vars
$platiniumUrl = '...';
$platiniumServer = '...';
$apiServerId = '...';
$apiServerKey = '...';
$apiServerTokenDev = '...';
$apiServerTokenProd = '...';
$latitude = '...';
$longitude = '...';
$radius = '...';
$tolerance = '...';

// Prepare Push Service
$pushService = new PushService();
$pushService->setServerInfo(
    $platiniumUrl,
    $platiniumServer,
    $apiServerId,
    $apiServerKey,
    $apiServerTokenDev,
    $apiServerTokenProd
);
$pushService->setPushLocation(
    true,
    $latitude,
    $longitude,
    $radius,
    $tolerance
);

// Push
$pushGroups = ['myGroups'];
$langs = ['fr'];

$pushService->push($myEntity, $pushGroups, $langs);

Credits

Authors : Thomas LEDUC & Alexandre CAILLOT, (*4)

The Versions

19/07 2018

dev-master

9999999-dev http://platinium.openium.fr

Openium Web Toolkit for Symfony Project

  Sources   Download

MIT

The Requires

  • php ^7.1

 

by Thomas Leduc
by Alexandre Caillot (Shiroe_sama)

notification push push-notification openium platinium

19/07 2018

2.0.0

2.0.0.0 http://platinium.openium.fr

Openium Web Toolkit for Symfony Project

  Sources   Download

MIT

The Requires

  • php ^7.1

 

by Thomas Leduc
by Alexandre Caillot (Shiroe_sama)

notification push push-notification openium platinium

10/04 2018

1.2.1

1.2.1.0 http://platinium.openium.fr

Openium Web Toolkit for Symfony Project

  Sources   Download

MIT

The Requires

  • php ^7.1

 

by Thomas Leduc
by Alexandre Caillot (Shiroe_sama)

notification push push-notification openium platinium

10/04 2018

1.2

1.2.0.0 http://platinium.openium.fr

Openium Web Toolkit for Symfony Project

  Sources   Download

MIT

The Requires

  • php ^7.1.3

 

by Thomas Leduc
by Alexandre Caillot (Shiroe_sama)

notification push push-notification openium platinium