pingram / php
Official PHP SDK for Pingram - Send notifications via Email, SMS, Push, In-App, and more
1.0.42
2026-11-09 17:22 UTC
Requires
- php: ^8.1
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- guzzlehttp/guzzle: ^7.3
- guzzlehttp/psr7: ^1.7 || ^2.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.5
- phpunit/phpunit: ^8.0 || ^9.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
- dev-main
- 1.0.42
- 1.0.41
- 1.0.40
- 1.0.39
- 1.0.38
- 1.0.37
- 1.0.36
- 1.0.35
- 1.0.34
- 1.0.33
- 1.0.32
- 1.0.31
- 1.0.30
- 1.0.29
- 1.0.28
- 1.0.27
- 1.0.25
- 1.0.24
- 1.0.23
- 1.0.22
- 1.0.20
- 1.0.19
- 1.0.18
- 1.0.17
- 1.0.16
- 1.0.14
- 1.0.13
- 1.0.12
- 1.0.11
- 1.0.10
- 1.0.9
- 1.0.7
- 1.0.6
- 1.0.5
- 1.0.3
- 1.0.1
- 1.0.0
- 0.1.5
- 0.1.4
- 0.1.3
- 0.1.2
- 0.1.1
- 0.1.0
- dev-workflow
This package is auto-updated.
Last update: 2026-11-09 17:24:45 UTC
README
Official PHP SDK for Pingram. Send notifications via Email, SMS, Push, In-App, and more from your PHP application.
Requirements
- PHP 8.1+
- Composer
- guzzlehttp/guzzle (installed via Composer)
Installation
composer require pingram/php
Or add to your composer.json:
{
"require": {
"pingram/php": "^0.1"
}
}
Then run composer install.
Quick start
Use the Pingram\Client with your API key, then call send() or the namespaced APIs (getDomains(), getSender(), etc.).
<?php require_once __DIR__ . '/vendor/autoload.php'; use Pingram\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();
You can override the base URL by passing a second argument: new Client('pingram_sk_...', 'https://api.example.com').
What can I call?
$client->send($body)– send a notification (high-level).$client->getDomains(),$client->getSender(),$client->getAccount(), etc. – low-level API objects. Each has methods matching the API (e.g.domainsListDomains,senderTestEmail).
For the full list of methods on each API, see the package's API_REFERENCE.md or the documentation.