Search by

usgm / sdk

usgm-it

Usgm PHP Library

v1.0.4 2026-07-17 05:38 UTC

This package is auto-updated.

Last update: 2026-09-17 06:00:54 UTC


README

The official PHP SDK for the US Global Mail API — manage your virtual mailbox, scans, shipments, folders, addresses, and account programmatically.

Requirements

PHP 8.1+

Installation

composer require usgm/sdk

Usage

<?php

use Usgm\UsglobalmailClient;

$client = new UsglobalmailClient($token);

// List mail in your mailbox
$mail = $client->mails->list();

The client exposes a sub-client per resource: $mails, $scans, $shipments, $folders, $addresses, $bankAccounts, $account, and $sandbox.

Authentication

Pass your API key as the $token constructor argument. Treat it like a password — keep it out of source control. See the documentation for details.

Documentation

License

MIT