1. Go to this page and download the library: Download audi2014/push-adapter 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/ */
audi2014 / push-adapter example snippets
use Audi2014\PushAdapter\Apns;
use Audi2014\PushAdapter\Fcm;
(new Apns([
Apns::CONF_APP_CER => 'sandbox.cer',
Apns::CONF_SANDBOX => true,
]))->sendByTokenArray([
'***TOKEN***',
'***TOKEN***',
'***TOKEN***',
],"adapterSandbox","adapterSandbox");
(new Apns([
Apns::CONF_APP_CER => 'prod.cer',
Apns::CONF_SANDBOX => false,
]))->sendByTokenArray([
'***TOKEN***',
'***TOKEN***',
'***TOKEN***',
],"adapterProduction","adapterProduction");
(new Fcm([
Fcm::CONF_APP_KEY => '**',
]))->sendByTokenArray([
'***TOKEN***',
'***TOKEN***',
'***TOKEN***',
],"adapterFcm","adapterFcm");
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.