PHP code example of nidux / app4less-push

1. Go to this page and download the library: Download nidux/app4less-push 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/ */

    

nidux / app4less-push example snippets

 php
    use Nidux\App4LessPush\APIClient;
    $client = new APIClient('USERNAME','PASSWORD');
 php
    $result = $client->sendPushNotification(
                'TOKEN1;TOKEN2;TOKEN3',
                'A NICE TTTLE',
                'A VALID URL',
                'utm'
            );