PHP code example of pingram / php

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

    

pingram / php example snippets




ingram\Client;
use Pingram\Model\SenderPostBody;

$client = new Client('pingram_sk_...');

// Send a notification (delegates to the default/sender API)
$body = new SenderPostBody([
    'notification_id' => 'your_notification_id',
    'to' => ['id' => 'user_123'],
]);
$response = $client->send($body);

// Or use namespaced APIs: $client->getDomains(), $client->getSender(), etc.
// $senders = $client->getDomains()->domainsListDomains();
bash
composer