Download the PHP package openium/platinium without Composer
On this page you can find all versions of the php package openium/platinium. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download openium/platinium
More information about openium/platinium
Files in openium/platinium
Download openium/platinium
More information about openium/platinium
Files in openium/platinium
Vendor openium
Package platinium
Short Description Openium Web Toolkit for Symfony Project
License MIT
Homepage http://platinium.openium.fr
Package platinium
Short Description Openium Web Toolkit for Symfony Project
License MIT
Homepage http://platinium.openium.fr
Please rate this library. Is it a good library?
Informations about the package platinium
Platinium API
Caution
this package is deprecated
please use platinium-php-bundle
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.
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
All versions of platinium with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.1
The package openium/platinium contains the following files
Loading the files please wait ....