1. Go to this page and download the library: Download cobisja/spn library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
cobisja / spn example snippets
$response = push_notification(<device_token_id>, 'Greetings', 'Hi, from SPN :)');
$recipients = [device_token, device_token, ..., device_token] // Up to 1000 device tokens
$response = push_notification($repicpients, 'Greetings', 'Hi, from SPN :)');
$response = push_notification(<devices_group_notification_key>, 'Greetings', 'Hi, from SPN :)');