openium / platinium-bundle
Provides push notification on Platinium for your Symfony8 Project
Package info
github.com/openium/platinium-php-bundle
Type:symfony-bundle
pkg:composer/openium/platinium-bundle
v3.1.0
2026-08-17 08:35 UTC
Requires
- php: >=8.4
- ext-json: *
- symfony/framework-bundle: ^8.1
- symfony/http-client: ^8.1
- symfony/http-foundation: ^8.1
- symfony/yaml: ^8.1
Requires (Dev)
- phpstan/phpstan: ^2.2
- rector/rector: ^2.6
- symfony/phpunit-bridge: ^8.1
This package is not auto-updated.
Last update: 2026-08-17 08:36:06 UTC
README
This bundle provide a easy way to send a push message by using Platinium
Caution
Versions < 1.1.6 are deprecated
Installation
Open a command console, enter your project directory and execute:
$ composer require openium/platinium-bundle
Configuration
You need to add 4 information in the .env
###> openium/platinium-bundle ###
PLATINIUM_SERVER_ID=
PLATINIUM_SERVER_KEY=
PLATINIUM_SERVER_TOKEN_DEV=
PLATINIUM_SERVER_TOKEN_PROD=
###< openium/platinium-bundle ###
Usage
Example :
// set by dependency injection $notifier = new PlatiniumNotifier(...); // get number of future pushed devices $deviceCount = $notifier->subscribe($groups, $langs, $langNotIn, $latitude, $longitude, $tolerance, $radius, $paramsBag, $badgeValue, $newsStand, $sound); // send a push message $pushSended = $notifier->notify($message, $groups, $langs, $langNotIn, $latitude, $longitude, $tolerance, $radius);